Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(Modal): remove aria-hidden from siblings when unmounting the component (v5)#9110

Merged
tlabaj merged 2 commits intopatternfly:mainfrom
dgdavid:modal-aria-hidden-improvements-v5
Jul 31, 2023
Merged

fix(Modal): remove aria-hidden from siblings when unmounting the component (v5)#9110
tlabaj merged 2 commits intopatternfly:mainfrom
dgdavid:modal-aria-hidden-improvements-v5

Conversation

@dgdavid
Copy link
Contributor

@dgdavid dgdavid commented May 12, 2023

What:

Same than #9096, but for v5 branch.

Additional issues:

Might close #8925.

dgdavid added 2 commits May 12, 2023 07:41
The component adds the aria-hidden attribute to its siblings when open
and removes it when closed. However, if the component is mounted as open
but then directly unmounted, its siblings will remain hidden from the
accessibility API forever.

Thus, the logic for removing these attributes is now also triggered when
the component is unmounted.
@patternfly-build
Copy link
Collaborator

patternfly-build commented May 12, 2023

@tlabaj tlabaj merged commit 3f11b91 into patternfly:main Jul 31, 2023
nicolethoen pushed a commit to Kells512/patternfly-react that referenced this pull request Sep 1, 2023
…mponent (v5) (patternfly#9110)

* fix(Modal): remove aria-hidden when unmount

The component adds the aria-hidden attribute to its siblings when open
and removes it when closed. However, if the component is mounted as open
but then directly unmounted, its siblings will remain hidden from the
accessibility API forever.

Thus, the logic for removing these attributes is now also triggered when
the component is unmounted.

* fix(Modal): remove trailing spaces in test file
dgdavid added a commit to agama-project/agama that referenced this pull request Oct 19, 2023
dgdavid added a commit to agama-project/agama that referenced this pull request Oct 19, 2023
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.

Bug - Modal - aria-hidden is not removed after closing modal-based form

5 participants