Skip to content
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

V2 BottomSheet Focus Accessibility: Auto Expansion for content focus in sliderOver #635

Merged

Conversation

Anubhvv
Copy link
Collaborator

@Anubhvv Anubhvv commented Apr 2, 2024

Problem

The sheetContent wasn't scrolling as the focus moved to next item which was below the visible region, making it inaccessible for physical keyboard users.

Root cause

The slideOver component is designed with a fixed height and relies on the expanded state to initiate scrolling. However, this design did not account for the dynamic focus changes occurring when users navigate the content with a keyboard.

Fix

To enhance accessibility and ensure seamless keyboard navigation, we’ve introduced an auto-expansion feature for the sheet. This feature activates when any of the sheet’s contents gain focus, thereby enabling the content to scroll into view. This improvement has been thoroughly tested with slideOver = true and Expandable = false configurations, confirming that scrolling functions correctly in all scenarios.

v2BottomSheet_auto_expand.webm

@Anubhvv Anubhvv requested a review from a team as a code owner April 2, 2024 09:38
@praveen970 praveen970 merged commit ec5ee2e into microsoft:master Apr 4, 2024
2 checks passed
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.

3 participants