Skip to content

Commit

Permalink
Fix specificity for buttons with outline style and background colors (#…
Browse files Browse the repository at this point in the history
…24599)

When the .wp-block-button.is-style-outline .wp-block-button_link
selector was added, its specificity (030) overrode existing
theme selectors that had 020 specificity.
  • Loading branch information
nosolosw authored Aug 18, 2020
1 parent efc836a commit 280668d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $blocks-button__height: 56px;
border-radius: 0 !important;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.is-style-outline .wp-block-button__link,
.wp-block-button__link.is-style-outline {
color: $dark-gray-700;
background-color: transparent;
Expand Down

0 comments on commit 280668d

Please sign in to comment.