Commit 7988f34
feat(cds-dialog): new preview component (#21853)
* feat(dialog): new wc preview component
* fix: footer elements selector
* fix: align stories
* fix(react): update scrolling content handling
* chore: export as preview
* fix: formatting
* fix: remove legacy test
* fix: deprecate ariaLabel
* docs: sync react and wc stories
* chore: update snapshots
* chore: cleanup and formatting
* chore: cleanup
* fix: esc key handling and selector override
* test: update tests
* fix: ts
* fix: a11y
* refactor: remove uneccesary aria-label prop
* chore: cleanup
* chore: cleanup aria-labelledby
* docs: dialog markdown cdn
* refactor: extend class
* fix: prevent close on esc for non-modal dialog
* test: label handling
* Update packages/react/src/components/Dialog/Dialog.tsx
Co-authored-by: Adam Alston <aalston9@gmail.com>
* fix: derive body label from custom id
* refactor: types, set labels on render
* fix(a11y): apply proper labelling and role on scroll container
* refactor: aria-labelledby title fallback
* chore: cleanup
* fix(esc): add !open guard
* fix(body): scope userDefinedTabindex guard to tabindex only
* docs: add see preview reference
* chore: remove preview prefix from export
---------
Co-authored-by: Adam Alston <aalston9@gmail.com>
Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com>1 parent 13f2327 commit 7988f34
25 files changed
Lines changed: 1399 additions & 109 deletions
File tree
- e2e/components/Dialog
- packages
- react
- __tests__/__snapshots__
- src/components/Dialog
- styles/scss/components/dialog
- web-components/src
- components
- button
- dialog
- modal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12051 | 12051 | | |
12052 | 12052 | | |
12053 | 12053 | | |
12054 | | - | |
| 12054 | + | |
12055 | 12055 | | |
12056 | 12056 | | |
12057 | | - | |
| 12057 | + | |
12058 | 12058 | | |
12059 | 12059 | | |
12060 | | - | |
| 12060 | + | |
12061 | 12061 | | |
12062 | 12062 | | |
| 12063 | + | |
| 12064 | + | |
| 12065 | + | |
12063 | 12066 | | |
12064 | 12067 | | |
12065 | 12068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 175 | + | |
178 | 176 | | |
179 | 177 | | |
180 | | - | |
| 178 | + | |
181 | 179 | | |
182 | 180 | | |
183 | | - | |
| 181 | + | |
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
187 | | - | |
188 | 185 | | |
189 | 186 | | |
| 187 | + | |
| 188 | + | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
| 191 | + | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
| 195 | + | |
197 | 196 | | |
198 | 197 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
206 | | - | |
207 | | - | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
336 | 382 | | |
337 | 383 | | |
338 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 188 | + | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| |||
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 261 | + | |
267 | 262 | | |
268 | 263 | | |
269 | 264 | | |
| |||
373 | 368 | | |
374 | 369 | | |
375 | 370 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
| 371 | + | |
382 | 372 | | |
383 | 373 | | |
384 | 374 | | |
| |||
0 commit comments