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 and jorgefilipecosta committed Aug 26, 2020
1 parent 6694da9 commit 2360d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/button/style.scss
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 2360d1a

Please sign in to comment.