Skip to content
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

Merged
merged 5 commits into from
Feb 9, 2021

Conversation

jshorty
Copy link
Contributor

@jshorty jshorty commented Feb 5, 2021

Prior to this change, color values supplied to the color: system argument are always classified with a text- prefix (color: :my_color becoming text-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.

@vercel
Copy link

vercel bot commented Feb 5, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/view-components/81gmex1ut
✅ Preview: https://view-components-git-functional-color-classify.primer.vercel.app

@vercel vercel bot temporarily deployed to Preview February 5, 2021 22:16 Inactive
@vercel vercel bot temporarily deployed to Preview February 5, 2021 22:54 Inactive
@vercel vercel bot temporarily deployed to Preview February 5, 2021 22:59 Inactive
@vercel vercel bot temporarily deployed to Preview February 5, 2021 23:01 Inactive
@vercel vercel bot temporarily deployed to Preview February 5, 2021 23:02 Inactive
@vercel vercel bot temporarily deployed to Preview February 8, 2021 15:00 Inactive
Copy link
Contributor

@joelhawksley joelhawksley left a 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. 🤔

@vercel vercel bot temporarily deployed to Preview February 9, 2021 14:26 Inactive
@vercel vercel bot temporarily deployed to Preview February 9, 2021 14:31 Inactive
@joelhawksley joelhawksley merged commit 17d1363 into main Feb 9, 2021
@joelhawksley joelhawksley deleted the functional-color-classify branch February 9, 2021 14:51
Copy link
Contributor Author

@jshorty jshorty left a 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!

@joelhawksley
Copy link
Contributor

@jshorty no problem! ❤️

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants