Skip to content

Commit

Permalink
Hotfix/#503 default button colors (#504)
Browse files Browse the repository at this point in the history
* allows defaults to work and editor styles selected display on Front End.

* allow selected color to stay with button on hover

* update block styles

* compiles
  • Loading branch information
Will Schmierer authored and coreymcollins committed Nov 4, 2019
1 parent 8d9cfc1 commit ccd9f4d
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 24 deletions.
2 changes: 1 addition & 1 deletion assets/sass/base/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Global Link Styles
//--------------------------------------------------------------

a:not(.button) {
a:not(.button):not(.wp-block-button__link) {
color: $color-link;
opacity: 1;
transition: $transition-opacity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

// The class on the <a>.
.wp-block-button__link {
background: $color-background-block-button;
border-radius: 0;

// The hover and focus states.
&:hover,
Expand Down
6 changes: 6 additions & 0 deletions assets/sass/utilities/mixins/_color-classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
color: $color;
}

// Adds colors for gutenberg buttons.
.wp-block-button__link.has-text-color.has-#{$name}-color {
color: $color;
}


// Create fill classes.
.fill-#{$name} {
fill: $color;
Expand Down
75 changes: 65 additions & 10 deletions gutenberg-blocks-style.css

Large diffs are not rendered by default.

75 changes: 65 additions & 10 deletions style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.min.css

Large diffs are not rendered by default.

0 comments on commit ccd9f4d

Please sign in to comment.