Skip to content

Commit a0dabf2

Browse files
mirkaaduthjameskosterjasmussen
authored
Components: Stop using rems (#72669)
* Components: Stop using rems * Add changelog * Correct changelog Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: aduth <aduth@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
1 parent 018fe98 commit a0dabf2

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

packages/components/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
- `Button`: Ensure that icons don't shrink ([#72474](https://github.com/WordPress/gutenberg/pull/72474)).
1414
- `Popover`: Fix `onDialogClose` logic to only close the popover if the blur event targets the specific popover instance ([#72376](https://github.com/WordPress/gutenberg/pull/72376)).
1515
- `Badge`: Add max-width for text truncation ([#72653](https://github.com/WordPress/gutenberg/pull/72653)).
16+
- `Tabs`: Replace `rem` with `px` in tablist overflow fade ([#72669](https://github.com/WordPress/gutenberg/pull/72669)).
17+
- `Modal`: Replace `rem` in heading text with a standard `px` value ([#72669](https://github.com/WordPress/gutenberg/pull/72669)).
18+
- Validated form controls: Replace `rem` with `px` in error message ([#72669](https://github.com/WordPress/gutenberg/pull/72669)).
1619

1720
## 30.6.0 (2025-10-17)
1821

packages/components/src/modal/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
left: 0;
152152

153153
.components-modal__header-heading {
154-
font-size: 1.2rem;
154+
font-size: $font-size-x-large;
155155
font-weight: 600;
156156
}
157157

packages/components/src/tabs/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const StyledTabList = styled( Ariakit.TabList )`
5858
when scaling in the transform, see: https://stackoverflow.com/a/52159123 */
5959
--antialiasing-factor: 100;
6060
&[aria-orientation='horizontal'] {
61-
--fade-width: 4rem;
61+
--fade-width: 64px;
6262
--fade-gradient-base: transparent 0%, black var( --fade-width );
6363
--fade-gradient-composed: var( --fade-gradient-base ), black 60%,
6464
transparent 50%;

packages/components/src/validated-form-controls/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
gap: 4px;
6262
margin: 8px 0 0;
6363
font-family: $font-family-body;
64-
font-size: 0.75rem;
64+
font-size: $font-size-small;
6565
line-height: 16px; // matches the icon size
6666
color: $components-color-gray-700;
6767
animation:

0 commit comments

Comments
 (0)