Skip to content

Commit

Permalink
Fix pinned plugins button styles when toggled. (#15609)
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored May 13, 2019
1 parent 449c254 commit f6d816d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

.components-icon-button {
margin-left: 4px;

&.is-toggled {
margin-left: 5px;
}
}

// Colorize plugin icons to ensure contrast and cohesion, but allow plugin developers to override.
Expand All @@ -19,7 +23,9 @@

// 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 * {
.components-icon-button.is-toggled svg *,
.components-icon-button.is-toggled:hover svg,
.components-icon-button.is-toggled:hover svg * {
stroke: $white !important;
fill: $white !important;
stroke-width: 0; // !important is omitted here, so stroke-only icons can override easily.
Expand Down

0 comments on commit f6d816d

Please sign in to comment.