-
Notifications
You must be signed in to change notification settings - Fork 34
fix(#2410): modal scrolling should be on the top when open #2728
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
Conversation
83e2829 to
560b92c
Compare
|
@syedszeeshan The PR is ready for you to test. For this PR there are 2 files are "touched": |
560b92c to
7656601
Compare
|
Drawer appears to be working fine also. PASSED. |
|
Screen Reader |
|
Hi @chrisolsen and @ArakTaiRoth Please help me review this PR too. I have a 👍 from @syedszeeshan 😍 |
|
@chrisolsen This is ready for merge |
|
🎉 This PR is included in version 1.34.1-alpha.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.5.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 4.5.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 6.5.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.35.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 4.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 6.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |

Before (the change)
With a long content, when opening a modal, it scrolls into the middle
2410-before.mov
After (the change)
2410-after.mov
Make sure that you've checked the boxes below before you submit the PR
Steps needed to test
You can use the below angular code to test (similar vs React)
and ts:
The below video is what I have tested with Windows NVDA screen reader. As expected, when open a modal, the title of the modal will be announced, when open an alertdialog modal, the full content will be announced, when
Tabto move to the first focusable element, the first focusable element inside a modal is focused. When tab until the end of the modal and tab one more time, it goes back to the X (close button) and go to the next focusable element instead of exit the modal and focusing on somewhere else.2410-modal-screen-reader.mov