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

fix(@clayui/css): Exclude variant styles from being output when using c-unset #5474

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

pat270
Copy link
Member

@pat270 pat270 commented Apr 17, 2023

fixes #5471

We can prevent variant styles from being output with this pattern:

$alert-palette: (
    primary: c-unset,
);

$btn-sizes: (
    btn-xs: c-unset,
);

$btn-monospaced-sizes: (
    btn-xs: c-unset,
);

previously it would throw an error.

    - This is used to check for the keywords c-unset or clay-unset for unsetting CSS properties/components in Clay
Copy link
Member

@matuzalemsteles matuzalemsteles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matuzalemsteles matuzalemsteles merged commit 1c28221 into liferay:master Apr 18, 2023
2 checks passed
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.

@clayui/css: We should be able to exclude variants from being output by using the c-unset keyword
2 participants