-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add support for functional color classes to color
:
#193
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/view-components/81gmex1ut |
2dca65d
to
fa82fd4
Compare
696c4e2
to
b156cff
Compare
b156cff
to
685e86a
Compare
685e86a
to
913c9ac
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.
Thanks for the PR @jshorty! Mind adding a CHANGELOG entry?
I also wonder if we might want to update the docs for the color
argument. 🤔
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.
Thanks for adding this, sorry I wasn't able to get to it yesterday!
@jshorty no problem! ❤️ |
Prior to this change, color values supplied to the
color:
system argument are always classified with atext-
prefix (color: :my_color
becomingtext-my-color
).This breaks with new functional color classes, where in some cases, a
color-
or other prefix is desired instead. This PR adds support for functional icon and text colors, a subset from the migration mapping at https://github.com/primer/css/blob/mkt/color-modes-docs/docs/content/support/v16-migration.mdx.