Skip to content

Add aria-hidden to accordian content div#1519

Merged
nickbristow merged 1 commit intomasterfrom
add_aria_hidden_to_password_info
Jun 30, 2017
Merged

Add aria-hidden to accordian content div#1519
nickbristow merged 1 commit intomasterfrom
add_aria_hidden_to_password_info

Conversation

@nickbristow
Copy link
Contributor

Why:
This tells the screen reader the content in this div
is hidden. When the accordian is expanded, aria-
hidden is changed to false, letting the screen
reader know there is new content on screen.

**Why**:
This tells the screen reader the content in this div
is hidden. When the accordian is expanded, aria-
hidden is changed to false, letting the screen
reader know there is new content on screen.
@nickbristow nickbristow force-pushed the add_aria_hidden_to_password_info branch from d8a0e93 to 2c636fb Compare June 29, 2017 21:44
@nickbristow nickbristow requested a review from el-mapache June 30, 2017 13:54
Copy link
Contributor

@el-mapache el-mapache left a comment

Choose a reason for hiding this comment

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

Accessibility question: do screen readers not consistently respect display: none, or is it just best practice to always include the aria-hidden attribute on nodes whose content can be displayed dynamically?

Looks good to me!

@nickbristow
Copy link
Contributor Author

@el-mapache they do respect it, changing the aria hidden is a way to let the screen reader know things come and go.

@nickbristow nickbristow merged commit 938d838 into master Jun 30, 2017
@nickbristow nickbristow deleted the add_aria_hidden_to_password_info branch June 30, 2017 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants