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

Possibly outdated information in the add docs #609

Open
zyriab opened this issue Feb 20, 2025 · 0 comments
Open

Possibly outdated information in the add docs #609

zyriab opened this issue Feb 20, 2025 · 0 comments

Comments

@zyriab
Copy link

zyriab commented Feb 20, 2025

In the add docs it says

Note: Hyperscript supports hyphens in object property names, so you can write add { font-size: '2em' }. However, double hyphens (--) mark comments in hyperscript, so if you need to use them for [CSS Custom Properties][], use quotes -- add { '--big-font-size': '2em' }.

But in the 0.8.4 release notes it says:

Comments now require two dashes and a space, like so: -- , which enables double dashes in class literals like so: add .foo--bar

So I guess the note can be removed, right?
Happy to open a PR if that's the case

PS: I'm also happy to add a note on using class names with a dash in them, as is frequent with TailwindCSS utilities. (.{'foo-bar'})

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

No branches or pull requests

1 participant