Skip to content

docs: Mention passing of data-* and aria-*-HTML-attributes #5902

@mfranzke

Description

@mfranzke

In general we pass down every data-* and aria-* attributes to the "main" element inside a component. We only exclude data-* and aria-* attributes which we need to automate stuff. In your case (tested with React) everything should work as expected (used aria-label):

Thanks, I wasn't really aware of it. I think it should be pointed out somewhere in the documentation for all elements / components. Feel free to close this issue since I was able to solve it (or to add a hint to the docs)

Originally posted by @d-koppenhagen in #4248

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