Skip to content

Commit

Permalink
Outline styles on direct descendant only
Browse files Browse the repository at this point in the history
To reduce potential of style conflicts. (+2 squashed commits)
Squashed commits:
[4a3717f8da] Inherit a text color for outlined button, not forcing a specific one
[8b062a80bd] Do not apply text color if it is being overriden

Fixing #24625
  • Loading branch information
webmandesign authored and jorgefilipecosta committed Nov 6, 2020
1 parent 00dedea commit 6cd2642
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ $blocks-button__height: 3.1em;

.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
color: #32373c;
background-color: transparent;
border: 2px solid;
}

.is-style-outline > .wp-block-button__link:not(.has-text-color),
.wp-block-button__link.is-style-outline:not(.has-text-color) {
color: #32373c;
}

0 comments on commit 6cd2642

Please sign in to comment.