Skip to content

Commit

Permalink
Simplify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Feb 7, 2023
1 parent 067f07f commit 4ca13f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/block-library/src/button/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ div[data-type="core/button"] {
}

.editor-styles-wrapper .wp-block-button .wp-block-button__link {
// The following styles smooth out the experience editing borders for individual
// buttons. They override the `border-width: 0;` applied by core's theme.json
// via the Elements API button. Without these overrides if a user selects a border
// color it won't show in the editor unless they also select a border width.
// The following styles ensure a default border is applied when the user selects only a border color or style in the editor,
// but no width. They override the `border-width: 0;` applied by core's theme.json via the Elements API button.
&:where(.has-border-color) {
border-width: initial;
}
Expand Down

0 comments on commit 4ca13f0

Please sign in to comment.