-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Color system] Icon #2781
[Color system] Icon #2781
Conversation
c2184f8
to
b032a9e
Compare
85b6eb6
to
c247607
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m good with this pending any feedback about the color mappings.
} | ||
|
||
.colorBlueDark { | ||
@include color-icon('blue', 'dark'); | ||
|
||
&::before { | ||
background-color: color('blue', 'light'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to write a note about this earlier. This value is not a supported backdrop, and must have been missed in previous changes
I paired this back a bit. Removing the interaction-state-related color options as I'm less confident about their usefulness. I'm also feeling confident about the aliasing, and in the fact that we can always change it if we have second thoughts. Going to merge this on green once I've made recommended notes for design review. |
What this does
Addresses: https://github.com/Shopify/polaris-ux/issues/348
Updates the
Icon
component to consume the new design language. It adds the following as new color options:base
: default in new design languagesubdued
critical
warning
highlight
success
primary
And aliases all old design language color options to logical equivalents in the new design language.
Questions for reviewers
should we havedisabled
,hovered
, andpressed
colors added to the icon color API?did I make the right choices in aliasing the existing values?subdued
, ink and black tobase
, and purple tohighlight
should twotone icons use--p-icon-on-interactive
(always white) or--p-surface
(variable) as the accent color?--p-surface
is it the right decision to omit an interactive color for icon?What this looks like
Playground