8000 fix(ui): improve dialog accessibility and DOM nesting by drichar · Pull Request #358 · algorandfoundation/reti · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(ui): improve dialog accessibility and DOM nesting #358

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

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

drichar
Copy link
Collaborator
@drichar drichar commented Feb 4, 2025

Description

This PR addresses accessibility warnings in the AddStakeModal component and fixes invalid DOM nesting in the reward token dialog. These changes improve screen reader support and HTML validity.

Details

  • Add DialogHeader with title and description to loading state in AddStakeModal
  • Improve error state titles for better accessibility
  • Replace div with span in AlertDialogDescription to prevent invalid DOM nesting

8000
Replace `div` with `span` in `AlertDialogDescription` to prevent invalid DOM
nesting of block-level elements inside paragraphs. `AlertDialogDescription` renders
as a `p` element, which cannot contain `div` elements per HTML spec.
Add `DialogHeader` with title and description to loading state and improve error
state titles for better accessibility and screen reader support.
Copy link
vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reti ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 7:50pm

@drichar drichar merged commit 1868352 into dev Feb 4, 2025
4 checks passed
@drichar drichar deleted the fix/ui-minor-warnings-and-errors branch February 4, 2025 19:55
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.

1 participant
0