-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Increase modal radius #49870
Increase modal radius #49870
Conversation
Size Change: -239 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good one: it makes the radius match that of the site view preview frame. It also well contains 2px buttons inside, and it feels useful for the larger command panel input field. Let's try it.
Before you land this, though, I'm pretty sure we need a changelog entry in packages/components/CHANGELOG.md
.
@@ -20,7 +20,7 @@ | |||
width: 100%; | |||
background: $white; | |||
box-shadow: $shadow-modal; | |||
border-radius: $radius-block-ui; | |||
border-radius: $grid-unit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be $grid-unit-10
for accuracy, right? This will work, but I see the $grid-unit
mostly as the base grid lacking a multiplication factor. I know that's nitpicky!
What?
Increase the base radius of modals in Gutenberg.
Why?
Modal radius came up as a detail to explore holistically in #49681. The current 2px value feels a bit sharp when compared to some newer UI elements such as the Frame in site view.
How?
Adjusts the CSS.
Testing Instructions
Try all the different modals to get a feel for the new, more rounded corners. Examples include: