Skip to content

Commit 3fc257f

Browse files
authored
[Color system] Icon (#2781)
* update icon component to consume new design language * omit interactive color * dry up types * feedback * remove interactive icon colors * alias sky and white to subdued, ink and black to icon
1 parent 6bc0dbe commit 3fc257f

File tree

6 files changed

+298
-30
lines changed

6 files changed

+298
-30
lines changed

src/components/Button/Button.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ $stacking-order: (
191191
@include recolor-icon(color('white'));
192192

193193
&.newDesignLanguage {
194-
@include recolor-icon(var(--p-button-text));
194+
@include recolor-icon(var(--p-icon-on-primary));
195195
}
196196

197197
&.disabled {
@@ -230,7 +230,7 @@ $stacking-order: (
230230
}
231231

232232
&.newDesignLanguage {
233-
@include recolor-icon(var(--p-button-text));
233+
@include recolor-icon(var(--p-icon-on-critical));
234234
}
235235
}
236236

src/components/Frame/components/Toast/Toast.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $Backdrop-opacity: 0.88;
3737
color: $error-color;
3838

3939
.CloseButton {
40-
fill: $error-color;
40+
fill: var(--p-icon-on-critical, $error-color);
4141
}
4242
}
4343

@@ -51,7 +51,7 @@ $Backdrop-opacity: 0.88;
5151
border: none;
5252
appearance: none;
5353
background: transparent;
54-
fill: var(--p-text, color('white'));
54+
fill: var(--p-icon, color('white'));
5555
cursor: pointer;
5656

5757
&:focus {

0 commit comments

Comments
 (0)