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

feat(theming): enhance getColor to accept rgba and literal color variables #1806

Merged
merged 3 commits into from May 13, 2024

Conversation

jzempel
Copy link
Member

@jzempel jzempel commented May 9, 2024

Description

Mainly adds support for 'rgba(param1, param2') notation to theming color variable values, where param1 is either a property reference (i.e. neutralHue.200) or a literal color and param2 is either a theming opacity value (i.e. 600) or a floating point number between 0 and 1.

Detail

The added unit tests are probably the best explanation of the new capabilities. A new background.disabled has been added to the theming color variables. The PR is temporarily on hold for finalized disabled values from Garden design.

@jzempel jzempel requested a review from a team as a code owner May 9, 2024 22:31
@coveralls
Copy link

coveralls commented May 9, 2024

Coverage Status

coverage: 96.224% (+0.008%) from 96.216%
when pulling ca62f7b on jzempel/enhance-variables
into 717a8d5 on next.

@jzempel jzempel merged commit 5282298 into next May 13, 2024
5 checks passed
@jzempel jzempel deleted the jzempel/enhance-variables branch May 13, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants