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

Fix a11y issues in List examples #33181

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

george-cz
Copy link
Contributor

@george-cz george-cz commented Oct 31, 2024

Updated the examples for List to fix most of the a11y issues found with the "Accessibility Insights for Web" tool.

2 remaining issues are:

aria-hidden-focus

on the tabster-specific elements. This is not actionable

nested-interactive

on the selectable simple list items. This is okay, as the listbox behavior is emulated through mouse/keyboard handlers and checkbox is there only for visualization, and/or screen reader support.

@george-cz george-cz requested a review from a team as a code owner October 31, 2024 11:17
@fabricteam
Copy link
Collaborator

📊 Bundle size report

✅ No changes found

@george-cz george-cz merged commit 8a7c85d into microsoft:master Oct 31, 2024
16 checks passed
@@ -62,13 +62,15 @@ export const ListActiveElement = () => {
return (
<div>
<List
as="div"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cannot we render it in the code as "div" ?
because what I understand now every developer who will use will need to do it by themself...
And they may to forget do that...


return (
<ListItem
value={props.value}
as="div"
value={value}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same as comment above, if we can render by default as div ?

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.

4 participants