Skip to content

Commit

Permalink
Use currentcolor as border-color for outline button style (#10658)
Browse files Browse the repository at this point in the history
* Fix the outline button style to use `currentcolor` for the border.

* Don't force a transparent background on oultine button style
  • Loading branch information
chrisvanpatten authored Oct 26, 2018
1 parent d3fcb37 commit 95a02b9
Showing 1 changed file with 5 additions and 49 deletions.
54 changes: 5 additions & 49 deletions packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ $blocks-button__line-height: $big-font-size + 6px;

.wp-block-button__link:not(.has-background) {
background-color: $dark-gray-700;

&:hover,
&:focus,
&:active {
Expand All @@ -45,64 +46,18 @@ $blocks-button__line-height: $big-font-size + 6px;
.wp-block-button.is-style-outline {
.wp-block-button__link {
background: transparent;
border: 2px solid transparent;

&.has-pale-pink-background-color {
border-color: #f78da7;
}

&.has-vivid-red-background-color {
border-color: #cf2e2e;
}

&.has-luminous-vivid-orange-background-color {
border-color: #ff6900;
}

&.has-luminous-vivid-amber-background-color {
border-color: #fcb900;
}

&.has-light-green-cyan-background-color {
border-color: #7bdcb5;
}

&.has-vivid-green-cyan-background-color {
border-color: #00d084;
}
border: 2px solid currentcolor;

&.has-pale-cyan-blue-background-color {
border-color: #8ed1fc;
}

&.has-vivid-cyan-blue-background-color {
border-color: #0693e3;
}

&.has-very-light-gray-background-color {
border-color: #eee;
}

&.has-cyan-bluish-gray-background-color {
border-color: #abb8c3;
}

&.has-very-dark-gray-background-color {
border-color: #313131;
}
}

.wp-block-button__link:not(.has-background) {
border-color: $dark-gray-700;
&:hover,
&:focus,
&:active {
border-color: $dark-gray-700;
border-color: currentcolor;
}
}

.wp-block-button__link:not(.has-text-color) {
color: $dark-gray-700;

&:hover,
&:focus,
&:active {
Expand All @@ -113,6 +68,7 @@ $blocks-button__line-height: $big-font-size + 6px;

.wp-block-button__link:not(.has-text-color) {
color: $white;

&:hover,
&:focus,
&:active {
Expand Down

0 comments on commit 95a02b9

Please sign in to comment.