-
Notifications
You must be signed in to change notification settings - Fork 3
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
Text fields uses :has() CSS pseudo-class that many browsers don't support yet #29
Comments
Thinking of replacing :has with general sibling combinator (~). |
Chromium based browsers now support :has(), but Firefox still hasn't enabled it for general use. |
Another workaround would be to just use classes on the parent tag and child or sibling tags if needed. But... it would provide a worse developer experience, that I would like to avoid. |
I am adding some comments/thoughts that might be useful to people looking at this issue:
ref: https://m2.material.io/components/text-fields/web#other-variations |
That compromise sounds ok. Doesn't seem to interfere with semantics or accessibility. |
Describe the bug
Text fields uses :has() CSS pseudo-class that many browsers don't support as of yet.
Useful links
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All expected features under :has() pseudo-classes to work. Use Chrome Dev or newer browser for working implementation.
Plan
N/A
The text was updated successfully, but these errors were encountered: