Skip to content

Commit

Permalink
ui: Add background-color: currentColor to all our icon masks (#7729)
Browse files Browse the repository at this point in the history
We currently define our 'decorational' iconography in our CSS via
background images and or psuedo content. For coloring these we use
`mask-image` and a background color.

This commit adds a background-color: currentColor to our %with-mask
placeholder that makes the color of these icons default to the `color`
of the current element, meaning the icons now inherit from things like
`:hover`.

This can easily be overwritten as before by just setting the
background-color on the icon manually as before.
  • Loading branch information
johncowen committed Apr 29, 2020
1 parent 4cc8db0 commit c6d740c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui-v2/app/styles/base/icons/base-placeholders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
%with-mask {
mask-repeat: no-repeat;
mask-position: center;
background-color: currentColor;
}
%as-pseudo {
display: inline-block;
Expand Down

0 comments on commit c6d740c

Please sign in to comment.