Commit 58918d4
committed
fix(Dialog): suppress missing Description warning when no description provided (#976)
Radix warns when DialogContent has no DialogDescription rendered.
Now renders a hidden RadixDialog.Description by default so the
warning is suppressed without requiring consumers to pass a
description prop or aria-describedby={undefined}.1 parent 1d9804e commit 58918d4
File tree
2 files changed
+10
-1
lines changed- .changeset
- src/components/Dialog
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| |||
0 commit comments