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 usage flags and conditional output #1914

Merged
merged 11 commits into from
Jul 5, 2024
Merged

Add usage flags and conditional output #1914

merged 11 commits into from
Jul 5, 2024

Conversation

sebnitu
Copy link
Owner

@sebnitu sebnitu commented Jul 4, 2024

What changed?

This PR updates the usage component to now only output a custom property once. This can be circumvented by using the "override" action which is tracked as its own property in the meta map.

The concept of "flags" has also been added to the meta map where a boolean flag can be set to alter a custom properties behavior. The first use-case is the "required" flag which allows a custom property to be output even if it was never referenced. This is useful for properties that are primarily used by JavaScript.

@sebnitu sebnitu added PR: feat Next Related to the next branch labels Jul 4, 2024
@sebnitu sebnitu merged commit 34846a8 into next Jul 5, 2024
2 checks passed
@sebnitu sebnitu deleted the next-css-required branch July 5, 2024 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Next Related to the next branch PR: feat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant