Skip to content

ARIA role "tab" not allowed for label element #820

Open
@juthilo

Description

@juthilo

In the tab component, the label element gets the attribute role="tab".

According to the HTML spec (see label entry in table in linked section), no roles are allowed for the native label element, because it has "strong native semantics" and its role should not be overridden.

This gets flagged by our accessibility checker unless we explicitly disable the rule.

I saw that similar code was still included in db-ui/mono, so I hope we can find a solution for the current and future component that is fully compliant.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions