Skip to content

fix(dashboard): stop nesting block content inside a <p> in the cancel dialog - #203

Merged
0xdevcollins merged 1 commit into
mainfrom
fix/dialog-description-nesting
Aug 9, 2026
Merged

0xdevcollins merged 1 commit into
mainfrom
fix/dialog-description-nesting

Conversation

@0xdevcollins

Copy link
Copy Markdown
Owner

Salvaged from #202. That PR's test and config work was superseded by #201, which greened the dashboard suite a different way — but this one change had no equivalent anywhere, so it would have been lost when #202 closed.

Radix renders AlertDialogDescription as a <p>. This one contained a <div> (the payout summary) and a second <p> (the closing warning). React flags the invalid nesting at runtime, and the browser's parser recovers by closing the paragraph early — which splits the element aria-describedby points at, so a screen reader gets part of the description rather than all of it.

asChild renders it as the <div> it always needed to be, with the intro text in its own <p>. The block stays inside the description rather than moving out as a sibling, which is what keeps the accessible description covering all of it.

Dashboard suite stays at 38/38. Typecheck and lint clean (0 errors).

Closes #202.

@vercel

vercel Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
useroutr-www Ready Ready Preview Aug 9, 2026 7:16pm

… dialog

Radix renders `AlertDialogDescription` as a `<p>`, and this one held a `<div>`
(the payout summary) and another `<p>` (the closing warning). That is invalid
HTML: React flags it at runtime, and the browser's parser recovers by closing
the paragraph early, which splits the element `aria-describedby` points at.

`asChild` renders the description as the `<div>` it always needed to be, with
the intro text moved into its own `<p>`. The whole block stays inside the
description rather than moving out as a sibling, so the accessible description
still covers all of it.

Salvaged from #202, whose test and config work was superseded by #201 — this
was the one change in it that nothing else carried. Dashboard suite stays at
38/38.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@0xdevcollins
0xdevcollins force-pushed the fix/dialog-description-nesting branch from 2eb289d to fa9b3df Compare August 9, 2026 19:15
@0xdevcollins
0xdevcollins merged commit e00cd8c into main Aug 9, 2026
8 checks passed
@0xdevcollins
0xdevcollins deleted the fix/dialog-description-nesting branch August 9, 2026 19:20

This branch was successfully deployed

1 active deployment
Preview – useroutr-www — fa9b3df7 Deployed Aug 9, 2026 by vercel[bot]
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