-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WRP-3423: Add aria-own to prevent read parent page #1361
Conversation
Enact-DCO-1.0-Signed-off-by: Jeonghee Ahn ([email protected])
Codecov ReportBase: 70.89% // Head: 70.89% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## develop #1361 +/- ##
========================================
Coverage 70.89% 70.89%
========================================
Files 137 137
Lines 6675 6675
Branches 1967 1967
========================================
Hits 4732 4732
Misses 1447 1447
Partials 496 496
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please find out if there any better way? As you can see in the alert PR comment, and also in the https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-owns, aria-owns
should NOT be used for parent/child DOM.
This is a tricky workaround solution and I don't want to expand this workaround across more components.
In JSX, it looks like a parent/children DOM, but in actual Rendered DOM trees, the two DOM are separate. If you want avoid this method, we should revert #1289 to keep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Checklist
Issue Resolved / Feature Added
Tv reads out previous page's header after return the
PopupTabLayout
page fromInput
'sPopup
Resolution
It is regression from #1289.
After removing "aria-hidden", the bug occurs.
So I add a wrapper
div
and set aria-own to prevent read parent page after return the previous page.It is exactly same way with
Alert
#813Additional Considerations
Screenshot test pass : Jenkins enact-screenshot-tests/1086/
Links
WRP-3423
Comments
Enact-DCO-1.0-Signed-off-by: Jeonghee Ahn ([email protected])