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 invalid custom class names #299

Closed
wants to merge 1 commit into from
Closed

Conversation

Ismaaa
Copy link

@Ismaaa Ismaaa commented May 28, 2024

No description provided.

@jaredh159
Copy link
Owner

Hi there, thanks for taking time to open a PR!

Was this causing a problem for you? I don't think these examples are invalid -- the library's plugin system for registering custom utilities does explicitly support leading dots here, and i think i changed the readme because you get better intellisense from some plugins/editors with the leading dot. but i might be missing something. can you elaborate on what problem this was causing you, or why the readme should be changed?

@Ismaaa
Copy link
Author

Ismaaa commented May 29, 2024

Hey @jaredh159 ! Thanks for your quick response.

You're correct; the leading dots in the class names within the plugin registration system are technically valid. However, from a conventional standpoint in typical HTML and CSS usage, class names are rarely prefixed with a dot outside of the CSS files themselves. This notation could be perceived as unusual or non-standard.

My intention was to align the examples more closely with common practices for clearer readability and to prevent any potential misunderstanding.

@jaredh159
Copy link
Owner

i'm a bit torn, because your reasoning is valid, but i think i'm going to keep them as is, because gently guiding people to write their custom utilities this way helps some with intellisense, and i think that win outweighs the slight confusion from the leading dots. so, i think i'm gonna close this, but truly appreciate the time you put into it.

@jaredh159 jaredh159 closed this May 30, 2024
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