Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix font reset for headings #1760

Merged
merged 3 commits into from
Mar 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
- Converted `EuiCardGraphic` to TS ([#1751](https://github.com/elastic/eui/pull/1751))
- Enhanced the build process to emit TypeScript types for the variables extracted from the themes ([#1750](https://github.com/elastic/eui/pull/1750))

**Bug fixes**

- Set `h1 through h6, p` tags font reset based on family, size, and weight ([#1760](https://github.com/elastic/eui/pull/1760))
- Fixed `EuiButton` font size inheritence ([#1760](https://github.com/elastic/eui/pull/1760))

## [`9.5.0`](https://github.com/elastic/eui/tree/v9.5.0)

- Changed `EuiSuperDatePicker` to call `onRefresh` instead of `onTimeChanged` when user clicks "Refresh" button ([#1745](https://github.com/elastic/eui/pull/1745))
Expand All @@ -12,7 +17,7 @@

**Bug fixes**

- Fixed `EuiToolTip` potentially having incorrect position calculations near the window edge ([#1744](https://github.com/elastic/eui/pull/1744))
- Fixed `EuiToolTip` potentially having incorrect position calculations near the window edge ([#1744](https://github.com/elastic/eui/pull/1744))

## [`9.4.2`](https://github.com/elastic/eui/tree/v9.4.2)

Expand Down
1 change: 1 addition & 0 deletions src/components/button/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@mixin euiButton {
@include euiFont;
@include euiFontSize;

display: inline-block;
appearance: none;
Expand Down
9 changes: 7 additions & 2 deletions src/global_styling/reset/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ time, mark, audio, video {
vertical-align: baseline;
}

code, pre {
code, pre, kbd, samp {
font-family: $euiCodeFontFamily;
}

h1, h2, h3, h4, h5, h6, p {
font-family: $euiFontFamily;
font-weight: $euiFontWeightRegular;
font-size: $euiFontSize;
}

input, textarea, select, button {
font-family: $euiFontFamily;
}
Expand Down Expand Up @@ -96,7 +102,6 @@ button {
padding: 0;
margin: 0;
outline: none;
font-size: $euiFontSize;
font-size: inherit;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 99 was removed because it was being directly overridden by the inherit and therefore was having no effect but clutter.

color: inherit;
border-radius: 0;
Expand Down