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

HTML element's name in classes #398

Open
ffoodd opened this issue Nov 27, 2020 · 1 comment
Open

HTML element's name in classes #398

ffoodd opened this issue Nov 27, 2020 · 1 comment

Comments

@ffoodd
Copy link
Owner

ffoodd commented Nov 27, 2020

As an advice, @matuzo 's suggestion on Twitter feels straightforward: an element having a class name containing any HTML element's name would probably benefit from being this HTML element.

As first idea, we should try something like this: [class*="button" i]:not(button) { … }.

Not all HTML elements make sense I guess, but focusing on some might help a lot.

@matuzo
Copy link

matuzo commented Nov 27, 2020

Nice! In my latest talk I've proposed a similar test:
https://noti.st/matuzo/lWUq2w/writing-even-more-css-with-accessibility-in-mind#sB6J1Kz (Slide 56)

It should include type="image" and type="reset" as well, I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
New tests
  
To do
Development

No branches or pull requests

2 participants