Skip to content

Commit

Permalink
Update: Adjust modal radius to be between frame and buttons. (WordPre…
Browse files Browse the repository at this point in the history
…ss#51254)

* Update: Adjust modal radius to be between frame and buttons.

* Update changelog.

* Try moving changelog.
  • Loading branch information
jasmussen authored and sethrubenstein committed Jul 13, 2023
1 parent 9f4ea09 commit dba2afe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- `Modal`: Update corner radius to be between buttons and the site view frame, in a 2-4-8 system. ([#51254](https://github.com/WordPress/gutenberg/pull/51254)).

### Bug Fix

- `Popover`: Allow legitimate 0 positions to update popover position ([#51320](https://github.com/WordPress/gutenberg/pull/51320)).
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/modal/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
width: 100%;
background: $white;
box-shadow: $shadow-modal;
border-radius: $grid-unit-10 $grid-unit-10 0 0;
border-radius: $grid-unit-05 $grid-unit-05 0 0;
overflow: hidden;
// Have the content element fill the vertical space yet not overflow.
display: flex;
Expand All @@ -31,7 +31,7 @@

// Show a centered modal on bigger screens.
@include break-small() {
border-radius: $grid-unit-10;
border-radius: $grid-unit-05;
margin: auto;
width: auto;
min-width: $modal-min-width;
Expand Down

0 comments on commit dba2afe

Please sign in to comment.