Skip to content

split button dropdown control is missing a label for accessibility APIs #10448

@ckundo

Description

@ckundo

When navigating to the dropdown caret in the split button dropdown, a screen reader user should hear an announcement of the label of the control (as recommended in WCAG2 technique H91).

The following markup in v3.0.0-rc.2 does not yield that behavior. The screen reader should announce the button's behavior (e.g. "Expand button"), but instead it only announces "Button".

components.html line 744

<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
  <span class="caret"></span>
</button>

To test on a Mac, go to http://jsfiddle.net/3GRus/show/ in Chrome or Safari, enable VoiceOver with or install ChromeVox, and press the tab key until the button has focus.

Tested with and VoiceOver and ChromeVox screen readers on OS 10.8.4, surfaced by HTML CodeSniffer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions