Skip to content

Commit

Permalink
Include :visited links in button color (#12183)
Browse files Browse the repository at this point in the history
I noticed the underscores theme's `:visited` link color was overriding our button color.

I also made the outline button's transparent background specific to the background-color so it wouldn't overwrite other background properties. For example a `background-image: linear-gradient()` on hover.
  • Loading branch information
m-e-h authored and gziolo committed Jan 25, 2019
1 parent a474438 commit c89de50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ $blocks-button__height: 56px;

&:hover,
&:focus,
&:active {
&:active,
&:visited {
color: inherit;
}
}
Expand All @@ -45,7 +46,7 @@ $blocks-button__height: 56px;
color: $dark-gray-700;

.wp-block-button__link {
background: transparent;
background-color: transparent;
border: 2px solid currentcolor;
}
}

0 comments on commit c89de50

Please sign in to comment.