Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

aria-expanded="true/false" should be on button that triggers the action #6315

Open
@pauldcollins

Description

@pauldcollins

Bug description:

The aria-expanded attribute with true/false values should be on the button the triggers the action. Currently it's on the parent DIV of the content expanding/collapsing. It will therefore not be picked up by screen readers and assistive software. This has been tested in JAWS 17 and NVDA 2016

It should be moved to the button:
eg: <button aria-expanded="true/false">Toggle Collapse</button>

You can also see examples of how it should be done on the W3C site - it's a part of the toggle link
W3C site example

Link to minimally-working plunker that reproduces the issue:

This can be found on the example site, just inspect the HTML for either of the collapse button examples:
https://angular-ui.github.io/bootstrap/#/collapse

Version of Angular, UIBS, and Bootstrap

Angular:
1.5.8
UIBS:
2.2.0
Bootstrap:
3.3.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions