Skip to content

a11y_consider_explicit_label should not consider popovers as text #17354

@samausir

Description

@samausir

Describe the bug

Svelte won't raise an a11y_consider_explicit_label warning if a button only contains a popover and no other text, but as seen in this screenshot, popover text is not exposed to the accessibility tree, so the warning would be warranted.

accessibility panel screenshot showing the button lacks accessible name

Reproduction

https://svelte.dev/playground/1855fb16ba544c6ea7ecdb822abe81b5?version=5.45.10

Logs

System Info

N/A

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions