From c89de50708581987af0d432bb4cd1939f3f80273 Mon Sep 17 00:00:00 2001 From: Marty Helmick Date: Fri, 25 Jan 2019 17:31:30 -0500 Subject: [PATCH] Include :visited links in button color (#12183) 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. --- packages/block-library/src/button/style.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/button/style.scss b/packages/block-library/src/button/style.scss index 2a45e2e574b38f..1519c6a11ddce5 100644 --- a/packages/block-library/src/button/style.scss +++ b/packages/block-library/src/button/style.scss @@ -32,7 +32,8 @@ $blocks-button__height: 56px; &:hover, &:focus, - &:active { + &:active, + &:visited { color: inherit; } } @@ -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; } }