FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(Modal): get modal container from state to set/unset aria-hidden by boaz0 · Pull Request #2406 · patternfly/patternfly-react · GitHub

fix(Modal): get modal container from state to set/unset aria-hidden - #2406

Merged
tlabaj merged 1 commit into
patternfly:masterfrom
boaz0:closes_2405
Jul 2, 2019
Merged

fix(Modal): get modal container from state to set/unset aria-hidden#2406
tlabaj merged 1 commit into
patternfly:masterfrom
boaz0:closes_2405

Conversation

boaz0 commented Jun 30, 2019
edited
Loading

Copy link
Copy Markdown
Member

What:
fixes #2405

When displaying a modal both the children of the body and the modal container had aria-hidden=true. The problem was that the container that was compared with the children is not stored in this.container but in the state.

This PR fixes this problem.

//cc @jgiardino

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-2406.surge.sh

dlabaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@jgiardino Can you make sure this resolves any accessibility concerns. Thanks for the fix @boaz0

dlabaj self-assigned this Jul 1, 2019
dlabaj added the bug 🐛 label Jul 1, 2019
jenny-s51 self-requested a review July 2, 2019 16:05

jenny-s51 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Currently working on the same issue in AboutModal and this change looks good to me.

tlabaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

tlabaj merged commit dd49c7e into patternfly:master Jul 2, 2019

Copy link
Copy Markdown
Contributor

Thanks for working on this, @boaz0!!

boaz0 deleted the closes_2405 branch April 24, 2020 06:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modal should trap screen reader focus

6 participants


Back | FazBrowse Home | New Git URL