Skip to content

Conversation

@majiayu000
Copy link
Contributor

Summary

  • Add role="main" to main content container using semantic <main> element
  • Add role="group" with aria-label support to Block component for fieldsets
  • Add role="group" with aria-label to BaseForm component
  • Add role="dialog" and aria-modal to API docs and settings modals
  • Add aria-label to footer navigation

Test plan

  • Added unit tests for Block component accessibility attributes
  • Added unit tests for BaseForm component accessibility attributes
  • All existing tests pass

Fixes #5771

Signed-off-by: majiayu000 [email protected]

- Add role="main" to main content container using semantic <main> element
- Add role="group" with aria-label support to Block component for fieldsets
- Add role="group" with aria-label to BaseForm component
- Add role="dialog" and aria-modal to API docs and settings modals
- Add aria-label to footer navigation

Fixes gradio-app#5771

Signed-off-by: majiayu000 <[email protected]>
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.

Add Landmarks For Accessibility

1 participant