-
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
Site Editor: Apply box-sizing:reset
to popover component
#56325
Conversation
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 looks like the right fix for me but I'd personally move both of these styles to the components directly (to avoid the indirection for refactorings/maintenance...)
Size Change: +35 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
I see, I'd like to close this PR and try that approach. |
Fixes #56190
What?
This PR fixes an issue where a scrollbar may appear when a popover is rendered in the Site Editor.
Before
After
Why?
Popovers may be rendered outside of the
.edit-site
wrapper. Therefore, thebox-sizing:border-box
reset style is not applied.How?
Added
.components-popover
to the class to reset. This approach is also taken by the Post Editor.Testing Instructions