-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Document style props (passing CSS custom properties to components) #6268
Comments
made an attempt here #6378 |
Add a warning that this feature breaks accessibility. All children of a component with See links at MDN#display: contents for accessibility concerns. Summary:
TL;DR if you care about accessibility and supporting Safari and pre-March-2021 Chrome do not use the |
@kwangure I don't think that's accurate. My understanding of the accessibility bug is that an element with From the MDN doc you linked (emphasis mine):
So I don't think it's true that the children of an element with The Svelte |
I think you're right! I failed to note both things. 1) Only semantic elements such as |
It would be great to see more on this - I'm happy to help draft documentation if needed, just @ me. Are there reasons why we're holding back on documenting this feature for now? Also this statement stands on its own
|
#6237 implemented the RFC for adding style props and was released in 3.38.0. This change allows passing CSS custom properties to components for use cases such as theming.
The RFC says:
The text was updated successfully, but these errors were encountered: