Skip to content

Remove incorrect aria-haspopup from dropdown toggles#28299

Merged
XhmikosR merged 1 commit intomasterfrom
patrickhlauke-v4-ariahaspopup
Feb 19, 2019
Merged

Remove incorrect aria-haspopup from dropdown toggles#28299
XhmikosR merged 1 commit intomasterfrom
patrickhlauke-v4-ariahaspopup

Conversation

@patrickhlauke
Copy link
Member

aria-haspopup use requires the use of an ARIA menu, listbox, tree, grid or dialog (see https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup)

in our use (as generic disclosure widgets), it's incorrect and sets up the wrong assumption/behavior from assistive technologies.

in future, we likely want to change our dropdowns to essentially be like a dialog - move focus to it when opened, possibly make it modal so focus is maintained inside it and the rest of the page
is hidden/inert.

but for now, removing the incorrect attribute is probably the quickest, most immediate fix.

Closes #28295

Copy link
Member

@XhmikosR XhmikosR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocking until we sort the branches

@XhmikosR XhmikosR changed the base branch from v4-dev to master February 19, 2019 09:06
@XhmikosR XhmikosR removed the v4 label Feb 19, 2019
`aria-haspopup` use requires the use of an ARIA `menu`, `listbox`, `tree`, `grid` or `dialog` (see https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup)

in our use (as generic disclosure widgets), it's incorrect and sets up the wrong assumption/behavior from assistive technologies.

in future, we likely want to change our dropdowns to essentially be like a `dialog` - move focus to it when opened, possibly make it modal so focus is maintained inside it and the rest of the page
is hidden/inert.

but for now, removing the incorrect attribute is probably the quickest, most immediate fix.
@XhmikosR XhmikosR force-pushed the patrickhlauke-v4-ariahaspopup branch from 0efe2e5 to 3600420 Compare February 19, 2019 09:14
@XhmikosR XhmikosR merged commit 4b00aa6 into master Feb 19, 2019
@XhmikosR XhmikosR deleted the patrickhlauke-v4-ariahaspopup branch February 19, 2019 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropdown does not conform to ARIA authoring practices

3 participants