-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Bug: Selector input.-username does not match <input className="field -username" /> #547
Comments
Can you link to the spec that shows where class names can start with a hyphen? |
The CSS 2.1 spec says just that it shouldn't start with hyphen followed by a digit, but it's not the case here. And class names starting with hyphens are recommended for component variants in RSCSS. |
I really needed this so I looked for a workaround and... attribute matching seems broken too. I have a dialog box that contains this: (as reported by
And I tried to match the button with various selectors.
...matched anything. Now this seems a pretty serious bug. 🐞 Tried one more way: P.S. If it's not clear yet, I use the |
Closed in #1086 |
This element:
Is not matched by
input.-username
selector.Btw,
input.field.-username
works, but the former should work too.Using enzyme
2.3.0
.The text was updated successfully, but these errors were encountered: