diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a9a610820c..c4de6571bbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) @@ -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) diff --git a/src/components/button/_mixins.scss b/src/components/button/_mixins.scss index 05d817c73cf..e86f468a6aa 100644 --- a/src/components/button/_mixins.scss +++ b/src/components/button/_mixins.scss @@ -1,5 +1,6 @@ @mixin euiButton { @include euiFont; + @include euiFontSize; display: inline-block; appearance: none; diff --git a/src/global_styling/reset/_reset.scss b/src/global_styling/reset/_reset.scss index c08fbb1e313..626c71bf268 100644 --- a/src/global_styling/reset/_reset.scss +++ b/src/global_styling/reset/_reset.scss @@ -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; } @@ -96,7 +102,6 @@ button { padding: 0; margin: 0; outline: none; - font-size: $euiFontSize; font-size: inherit; color: inherit; border-radius: 0;