Skip to content

Commit 65b5b7d

Browse files
committed
Components: Add hairline border to Modal frame
Match the always-on token-colored hairline border now present on the Dialog/AlertDialog/Drawer/Popover overlays, so the popup edge reads as a defined boundary against the lighter tokenized backdrop instead of relying on the elevation shadow alone. `@include reset` already applies `box-sizing: border-box`, so the 1px border is absorbed into the existing frame dimensions and does not shift layout. Made-with: Cursor
1 parent 8abf47b commit 65b5b7d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/components/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- `Menu`: Remove `cursor: not-allowed` and added pointer styles to menu ([#70412](https://github.com/WordPress/gutenberg/pull/70412))
88
- `FormToggle`: Add stacking context isolation ([#77619](https://github.com/WordPress/gutenberg/pull/77619)).
99
- `FormTokenField`: Add `help` prop to render additional help text below the field, and deprecate the `__experimentalShowHowTo` prop in favor of it. The `help` prop now defaults to the previous how-to text; pass an empty string to hide it ([#77552](https://github.com/WordPress/gutenberg/pull/77552)).
10-
- `Modal`: Render the backdrop with the `--wpds-color-bg-surface-neutral-weak` system token instead of a hardcoded black, and bump the alpha to 75% so the lighter token retains comparable presence — matching the Dialog/Drawer/Popover backdrop styling.
10+
- `Modal`: Add a token-colored hairline border to the modal frame, and render the backdrop with the `--wpds-color-bg-surface-neutral-weak` system token instead of a hardcoded black at 75% alpha — matching the Dialog/Drawer/Popover overlay styling.
1111

1212
### Deprecations
1313

packages/components/src/modal/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
margin: $grid-unit-50 0 0 0;
3737
width: 100%;
3838
background: $white;
39+
border: var(--wpds-border-width-xs) solid var(--wpds-color-stroke-surface-neutral);
3940
box-shadow: $elevation-large;
4041
border-radius: $radius-large $radius-large 0 0;
4142
overflow: hidden;

0 commit comments

Comments
 (0)