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

Allow negative utility names in @utilty #15573

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where static utilities defined via @utility wasn't possible if the name starts with -.

There are plenty of static utilities that start with -, but it wasn't possible to register them via the @utility directive, only via the JS API.

Example of a core utility that is now valid:

@utility -inset-full {
  inset: -100%;
}

@RobinMalfait RobinMalfait requested a review from a team as a code owner January 8, 2025 20:37
@RobinMalfait RobinMalfait force-pushed the fix/allow-negative-static-utilities branch from f28d946 to fe1a12b Compare January 8, 2025 20:39
@RobinMalfait RobinMalfait merged commit 76151d4 into next Jan 8, 2025
5 checks passed
@RobinMalfait RobinMalfait deleted the fix/allow-negative-static-utilities branch January 8, 2025 20:44
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.

2 participants