Skip to content

ActionGroup: When overflowMode collapse is used, resulting menubutton with ellipsis needs a better labelΒ #4129

Closed
@dineshy87

Description

@dineshy87

πŸ› Bug Report

When OverflowMode: collapse results in Actiongroups behaving like menu buttons, the resulting menubutton seems to have an aria-label=β€œβ€¦β€. This is announced as "ellipsis" when voiceOver is used. And on windows, NVDA and narrator consider it as having no label and announces nothing. Refer to this storybook example

Note: This effects ActionBar as well and is more of an issue on mobile because actiongroup is almost always collapsed on mobile.

πŸ€” Expected Behavior

Instead of aria-label="...", more may be a better label for these menubuttons or something else. In cases where entire toolbar can be collapsed to one button, the menubutton must take that the label of toolbar itself. (I see that it's already happening in this example)

😯 Current Behavior

Collapsed menubutton has aria-label="..." which is completely ignored by some screen readers. And therefore is not an ideal label for the button.

πŸ’» Code Sample

Issue can be observed on these storybook examples by testing using NVDA on Firefox/Edge.

You can use https://assistivlabs.com/ to verify this if you do not have a windows machine.

🌍 Your Environment

Software Version(s)
react-spectrum 3
Browser Firefox & Edge (at least)
Operating System Windows

🧒 Your Company/Team

πŸ•· Tracking Issue (optional)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    βœ… Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions