Skip to content

HTML element's name in classes #398

Open

Description

@ffoodd

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.

Activity

  1. matuzo commented on Nov 27, 2020

    @matuzo

    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

  2. moved this to To do in New testson Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions