Skip to content

Commit c9974d1

Browse files
authored
feat(icons): Added a utility class to set icon color to current color (#2840)
* feat(icons): Added a utility class for current color * feat(icons): Updated annotation selector
1 parent 84af220 commit c9974d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ui/components/icons/base/_index.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,14 @@ $bg-standard-map: map-merge($task2-monkey-patch, $bg-standard-map);
177177
.slds-icon-text-light {
178178
fill: $color-text-input-icon;
179179
}
180+
181+
/**
182+
* @selector .slds-current-color
183+
* @restrict *
184+
*/
185+
.slds-current-color {
186+
187+
.slds-icon {
188+
fill: currentColor;
189+
}
190+
}

0 commit comments

Comments
 (0)