Skip to content

Commit

Permalink
Remove stroke from CSS rules that colorize plugin icons (#13719)
Browse files Browse the repository at this point in the history
* Remove stroke from CSS rules that colorize plugin icons

* Restored stroke values and added stroke-width property
  • Loading branch information
avillegasn authored and youknowriad committed Feb 8, 2019
1 parent 3148d8c commit 1a7354c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,21 @@
.components-icon-button:not(.is-toggled) svg * {
stroke: $dark-gray-500;
fill: $dark-gray-500;
stroke-width: 0; // !important is omitted here, so stroke-only icons can override easily.
}

// Forcefully colorize hover and toggled plugin icon states to ensure legibility and consistency.
.components-icon-button.is-toggled svg,
.components-icon-button.is-toggled svg * {
stroke: $white !important;
fill: $white !important;
stroke-width: 0; // !important is omitted here, so stroke-only icons can override easily.
}

.components-icon-button:hover svg,
.components-icon-button:hover svg * {
stroke: $dark-gray-900 !important;
fill: $dark-gray-900 !important;
stroke-width: 0; // !important is omitted here, so stroke-only icons can override easily.
}
}

0 comments on commit 1a7354c

Please sign in to comment.