-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Apply Global Border-Box Sizing to all blocks that have a border style #64788
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
.wp-block-details { | ||
box-sizing: border-box; | ||
} | ||
|
||
.wp-block-details summary { | ||
cursor: pointer; | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.wp-block-post-author { | ||
display: flex; | ||
flex-wrap: wrap; | ||
box-sizing: border-box; | ||
|
||
&__byline { | ||
width: 100%; | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
One catch with this selector is that it would only apply to blocks with border styles applied on the block instance. If a border was applied to a block type via global styles it wouldn't have the correct box-sizing.
This also only covers the application of borders where box-sizing has historically been set for blocks that adopt padding support as well.
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.
Thank you for your valuable feedback. I will work on this.