-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fluent : carousel accessibility fixes #12050
Fluent : carousel accessibility fixes #12050
Conversation
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.
Just an FYI, packages/fluentui
is virtually read-only until the fluent repo is archived and the final import of code is completed. I will block this PR for now until that point just for added safety.
Also, CODEOWNERS was updated to add fluent repo members, but that wasn't in place yet when you created this PR. You can just manually assign reviewers for this specific PR.
This PR looks like it succumbed to github issues that were occurring last night so I will close and reopen to trigger a new build. |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: e5c9f2bea83a4b9b0a82d303682c2ea093036c83 (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
@kolaps33 Any updates on this? |
packages/fluentui/docs/src/examples/components/Carousel/BestPractices/CarouselBestPractices.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/docs/src/examples/components/Carousel/BestPractices/CarouselBestPractices.tsx
Show resolved
Hide resolved
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.
Looks awesome!
This PR is created based on the from another repository:
https://github.com/microsoft/fluent-ui-react/pull/2278/files
Related carousel: Carousel with Pagination
In this PR are fixes related to the feedback which we got from Rekha + feedback from testing.
Issue: Index numbers (1 of 4) are read twice as you down arrow through the carousel item.
Fix: add aria-hidden="true" on the text
2.1 Issue: The first and the last item in the carousel are not read when the prev/next button is pressed in browse mode.
2.2 #2224
Fix: moving focusing the next/previous paddle to generic function, which is call always, even when "onclick" is executed...
Issue: Should there be focus on the entire carousel control and the left/right buttons? Seems redundant and adds more keyboard stops
Fix: change the behavior that for carousel without the "tab" navigation there will be tabindex=-1 on itemsContainer
Issue: Carousel itself should have a label property defined. The roledescription is set to “Carousel” so label can be “Portrait collection” for this example
Fix: added prop aria-label to be able label the carousel
Issue: #2225
Fix: was decided that if reader will narrate "carousel" user will know how to use keyboard to rotate through the carousel
For this reason to narrate "carousel" in application mode was added additional props(role, aria-label,aria-roledescription) into "itemsContainer" in "carouselBehavior.ts".
Now there is role "group". After more testing could be change for "region". For me region was not narrating "carousel" in focus mode for NVDA.
Issue: Programmatically Prev/Next buttons are outside carousel container so it will likely confuse the user. Carousel container element should include all elements within carousel.
Fix: apply region only for "Carousel with Pagination", provide there proper label and roledescription. Fix is in "carouselBehavior.ts" for "root" slot.
Microsoft Reviewers: Open in CodeFlow