Skip to content

Badge: Icon Only variant in storybook does not have aria-label. #4043

@dineshy87

Description

@dineshy87

🙋 Documentation Request

According to React-Spectrum Docs, if a visible label isn't specified, an aria-label must be provided for accessibility. But there are no examples provided.

Storybook example doesn’t have any aria-label and so it’s completely skipped by screenreader users.

Spectrum guidance says that Icon-only variants should be avoided, but if used, should always include a tooltip on hover.

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