Skip to content

Conversation

@boaz0
Copy link
Member

@boaz0 boaz0 commented Jun 30, 2019

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>
@patternfly-build
Copy link
Collaborator

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

Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

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

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

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

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

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@tlabaj tlabaj merged commit dd49c7e into patternfly:master Jul 2, 2019
@jgiardino
Copy link
Contributor

Thanks for working on this, @boaz0!!

bitmoji

@boaz0 boaz0 deleted the closes_2405 branch April 24, 2020 06:42
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