@nxgt/material 2.7.1 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/CHANGELOG.md +174 -0
  2. package/README.md +7 -4
  3. package/dist/{_Uint8Array-JRUmWcRr.js → _Uint8Array-CALbCR7W.js} +1 -1
  4. package/dist/{_overRest-DvC5rm5s.js → _overRest-BQ8agsDH.js} +1 -1
  5. package/dist/{abnfDiagram-O67JEVCF-Cl4ukf6a.js → abnfDiagram-O67JEVCF-D-rmT4BY.js} +4 -4
  6. package/dist/{architectureDiagram-NJMV4G6O-WmFlBQF5.js → architectureDiagram-NJMV4G6O-DOc_c_T9.js} +7 -7
  7. package/dist/{async-slice-OftEOtMA.js → async-slice-BHMdvnqm.js} +2 -2
  8. package/dist/{blockDiagram-BEXU5L5S-BM-gkWAO.js → blockDiagram-BEXU5L5S-D4gI6nqs.js} +11 -11
  9. package/dist/{c4Diagram-YGBWAQC7-D9xSt2QO.js → c4Diagram-YGBWAQC7-El4SkIzX.js} +8 -8
  10. package/dist/{channel-Dg92Hoym.js → channel-CnLB6790.js} +1 -1
  11. package/dist/{chunk-3FUC2YCW-Cf18L00V.js → chunk-3FUC2YCW-BLMCnCFE.js} +8 -8
  12. package/dist/{chunk-5DYCD2WN-Cja1INgd.js → chunk-5DYCD2WN-Cd1zazNp.js} +3 -3
  13. package/dist/{chunk-6AEJRKK7-3YWRP4aV.js → chunk-6AEJRKK7-BLBlw8ui.js} +2 -2
  14. package/dist/{chunk-742MDFTN-Cs1qGiTK.js → chunk-742MDFTN-CsUjFyzK.js} +2 -2
  15. package/dist/{chunk-7INBJB4K-BY5n77ka.js → chunk-7INBJB4K-k-I67NSP.js} +6 -6
  16. package/dist/{chunk-7M6MHVWA-C3x6E3yT.js → chunk-7M6MHVWA-CUtKEeuL.js} +9 -9
  17. package/dist/{chunk-7PRAP22T-_Av9vcXz.js → chunk-7PRAP22T-0C6_H8Li.js} +1 -1
  18. package/dist/{chunk-GNY47TPC-D1E6DHDV.js → chunk-GNY47TPC-CB_83G7J.js} +11 -11
  19. package/dist/{chunk-GTNCS2PH-BZ9WMD1v.js → chunk-GTNCS2PH-AJi9PVT7.js} +3 -3
  20. package/dist/{chunk-GWA4HPMP-Co-A6dtV.js → chunk-GWA4HPMP-B8jXI0Tl.js} +3 -3
  21. package/dist/{chunk-MBY4JIJT-C3RQP_Nk.js → chunk-MBY4JIJT-BFIqOe-8.js} +4 -4
  22. package/dist/{chunk-NETBCI7D-DJUuN4EY.js → chunk-NETBCI7D-Cywmx0rz.js} +1 -1
  23. package/dist/{chunk-O7XYJQB3-A66QSOPA.js → chunk-O7XYJQB3-BChweQ_V.js} +1 -1
  24. package/dist/{chunk-UA2S7LBM-BNeHeMx9.js → chunk-UA2S7LBM-ChuksCDg.js} +6 -6
  25. package/dist/{chunk-WEXAMYUT-CucJfehv.js → chunk-WEXAMYUT-CbFOhEve.js} +2 -2
  26. package/dist/{chunk-XXDRQBXY-FgXU14Bh.js → chunk-XXDRQBXY-dKXxu_aj.js} +1 -1
  27. package/dist/{chunk-Z7XXMR3K-DMTBxZxM.js → chunk-Z7XXMR3K-Ccb3Rfjl.js} +8 -8
  28. package/dist/{chunk-ZIGJFQKS-C3xUAXJq.js → chunk-ZIGJFQKS-9VXArDKF.js} +3 -3
  29. package/dist/{classDiagram-v2-NBCMYWYE-BDaxYvDy.js → classDiagram-v2-NBCMYWYE-CRgxPgLD.js} +14 -14
  30. package/dist/clsx-CbxlCXZ3.js +16 -0
  31. package/dist/components/base-content.css +139 -0
  32. package/dist/components/base.css +150 -0
  33. package/dist/components/components.css +2 -0
  34. package/dist/components/reduced-motion.css +56 -0
  35. package/dist/components/theme-tokens.css +116 -0
  36. package/dist/components/ui/actions/button-group/button-group.css +1 -1
  37. package/dist/components/ui/feedback/toast/toast.css +21 -0
  38. package/dist/components/ui/primitives/label/label.css +33 -0
  39. package/dist/{components-DrStgM4J.js → components-Bg1bqGbc.js} +34666 -34274
  40. package/dist/components.js +6 -6
  41. package/dist/{cose-bilkent-JH36ORCC-DRUT3qBb.js → cose-bilkent-JH36ORCC-P94vkHv_.js} +2 -2
  42. package/dist/{cynefinDiagram-VND7K2PF-B9HrdQW8.js → cynefinDiagram-VND7K2PF-EIpXbLXm.js} +4 -4
  43. package/dist/{dagre-6A5THRUB-DZF0nICj.js → dagre-6A5THRUB-c8yG3_vh.js} +20 -20
  44. package/dist/{diagram-22UHCM2B-CVZYpeev.js → diagram-22UHCM2B-C3Xcfy6D.js} +15 -15
  45. package/dist/{diagram-3UASUU5V-D7MmBJbM.js → diagram-3UASUU5V-maEO61Bh.js} +7 -7
  46. package/dist/{diagram-ATOU4E4O-CNY-8kl0.js → diagram-ATOU4E4O-isL7nwg2.js} +3 -3
  47. package/dist/{diagram-CDSNMT55-C8Mk1smi.js → diagram-CDSNMT55-Bnhlo5at.js} +5 -5
  48. package/dist/{diagram-MLGK6HIB-CpfeILwW.js → diagram-MLGK6HIB-DvBcyz8v.js} +4 -4
  49. package/dist/{diagram-MPIPVDR6-Do7bUnTd.js → diagram-MPIPVDR6-iTevwmNE.js} +4 -4
  50. package/dist/{dist-C3YK_ean.js → dist-B6_-RPZ3.js} +1 -1
  51. package/dist/{dist-CRbPtqwD.js → dist-BvUQHUs_.js} +4 -4
  52. package/dist/dnd.js +1 -1
  53. package/dist/{ebnfDiagram-ZINNZB2B-1GewX9Zq.js → ebnfDiagram-ZINNZB2B-RVuQIpm0.js} +4 -4
  54. package/dist/{elk-276RUBZZ-DI4eicFj.js → elk-276RUBZZ-BoWoJr6K.js} +26 -26
  55. package/dist/{erDiagram-OPXOYQCR-CUbpVns3.js → erDiagram-OPXOYQCR-CVvgZCSJ.js} +14 -14
  56. package/dist/field-blur-Bwa48QBk.js +3637 -0
  57. package/dist/flowDiagram-KWPJA3E3-RdU0csul.js +17 -0
  58. package/dist/{ganttDiagram-FUAMR5RP-D3vmspam.js → ganttDiagram-FUAMR5RP-DPLDPJtJ.js} +6 -6
  59. package/dist/{gitGraphDiagram-X574FWY7-80yOq8dE.js → gitGraphDiagram-X574FWY7-DerJL1Q-.js} +3 -3
  60. package/dist/{graphlib-DLJn7qS3.js → graphlib-DHgEBs83.js} +6 -6
  61. package/dist/hooks.js +3 -3
  62. package/dist/{i18n-provider-DBFRz5uH.js → i18n-provider-CA8YAlje.js} +1 -1
  63. package/dist/i18n.js +6 -6
  64. package/dist/icon-button-G9zdQ3Ix.js +2753 -0
  65. package/dist/{infoDiagram-VRGFBTTK-Cboh-B9n.js → infoDiagram-VRGFBTTK-CtVsLyCQ.js} +3 -3
  66. package/dist/{isArrayLikeObject-CO5xeuaJ.js → isArrayLikeObject-BSfDsA7T.js} +3 -3
  67. package/dist/{isEmpty-DOC38Ces.js → isEmpty-BEe-nNXw.js} +3 -3
  68. package/dist/{ishikawaDiagram-OU5B5YK6-DwTd1YxL.js → ishikawaDiagram-OU5B5YK6-D1n8vp8C.js} +4 -4
  69. package/dist/{journeyDiagram-ZHPQQLJL-Dxvl3oeN.js → journeyDiagram-ZHPQQLJL-CTGnr-JY.js} +4 -4
  70. package/dist/{kanban-definition-PNTS6WVX-S8plI4wn.js → kanban-definition-PNTS6WVX-D1-Owjil.js} +10 -10
  71. package/dist/lib/components/ui/actions/button/busy-click-capture.d.ts +11 -0
  72. package/dist/lib/components/ui/actions/button/button-tones.d.ts +36 -0
  73. package/dist/lib/components/ui/actions/button/button.d.ts +19 -0
  74. package/dist/lib/components/ui/actions/button/button.wrap.d.ts +8 -0
  75. package/dist/lib/components/ui/actions/button/label-text.d.ts +10 -0
  76. package/dist/lib/components/ui/actions/button/use-click-lock.d.ts +18 -0
  77. package/dist/lib/components/ui/actions/copy-button/copy-button.d.ts +5 -1
  78. package/dist/lib/components/ui/actions/icon-button/icon-button.compound-variants.d.ts +114 -0
  79. package/dist/lib/components/ui/collections/data-table/hooks.d.ts +13 -13
  80. package/dist/lib/components/ui/collections/data-table/partials/data-table-empty-row.d.ts +5 -1
  81. package/dist/lib/components/ui/collections/data-table/partials/data-table-scroll-region.d.ts +16 -0
  82. package/dist/lib/components/ui/collections/data-table/partials/data-table-toolbar.d.ts +24 -0
  83. package/dist/lib/components/ui/collections/data-table/select-checkbox.d.ts +10 -0
  84. package/dist/lib/components/ui/collections/data-table/types.d.ts +9 -0
  85. package/dist/lib/components/ui/collections/data-table/use-data-table.d.ts +12 -1
  86. package/dist/lib/components/ui/collections/data-table/use-scroll-edges.d.ts +22 -0
  87. package/dist/lib/components/ui/dates/calendar/calendar-day.d.ts +8 -0
  88. package/dist/lib/components/ui/dates/calendar/calendar.d.ts +3 -3
  89. package/dist/lib/components/ui/dates/calendar/calendar.utils.d.ts +8 -0
  90. package/dist/lib/components/ui/dates/calendar/use-calendar-labels.d.ts +22 -0
  91. package/dist/lib/components/ui/display/description/description.d.ts +2 -1
  92. package/dist/lib/components/ui/display/list-tile/list-tile.d.ts +9 -1
  93. package/dist/lib/components/ui/display/list-tile/partials/list-tile-body.d.ts +11 -0
  94. package/dist/lib/components/ui/display/list-tile/partials/list-tile-classes.d.ts +10 -0
  95. package/dist/lib/components/ui/feedback/alert-dialog/alert-dialog.d.ts +1 -1
  96. package/dist/lib/components/ui/feedback/toast/partials/toast-actions.d.ts +3 -0
  97. package/dist/lib/components/ui/feedback/toast/toast.d.ts +27 -3
  98. package/dist/lib/components/ui/feedback/toast/toaster.d.ts +19 -0
  99. package/dist/lib/components/ui/feedback/toast/toasts.d.ts +3 -0
  100. package/dist/lib/components/ui/forms/field-blur.d.ts +7 -2
  101. package/dist/lib/components/ui/forms/use-field-blur.d.ts +8 -1
  102. package/dist/lib/components/ui/layout/app-shell/activity-content.d.ts +10 -1
  103. package/dist/lib/components/ui/layout/app-shell/activity-layout.d.ts +26 -2
  104. package/dist/lib/components/ui/layout/app-shell/app-header.d.ts +8 -2
  105. package/dist/lib/components/ui/layout/app-shell/app-sidebar.d.ts +8 -2
  106. package/dist/lib/components/ui/layout/app-shell/types.d.ts +3 -0
  107. package/dist/lib/components/ui/layout/app-shell/use-content-scroll.d.ts +10 -0
  108. package/dist/lib/components/ui/layout/app-shell/use-navigation-sheet.d.ts +19 -0
  109. package/dist/lib/components/ui/layout/sidebar/index.d.ts +5 -0
  110. package/dist/lib/components/ui/layout/sidebar/sidebar-content.d.ts +2 -0
  111. package/dist/lib/components/ui/layout/sidebar/sidebar-context.d.ts +7 -0
  112. package/dist/lib/components/ui/layout/sidebar/sidebar-footer.d.ts +2 -0
  113. package/dist/lib/components/ui/layout/sidebar/sidebar-header.d.ts +2 -0
  114. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item-tooltip.d.ts +7 -0
  115. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.d.ts +31 -0
  116. package/dist/lib/components/ui/layout/sidebar/sidebar-menu-label.d.ts +4 -0
  117. package/dist/lib/components/ui/layout/sidebar/sidebar.d.ts +1 -12
  118. package/dist/lib/components/ui/overlays/context-menu/context-menu-items.d.ts +10 -0
  119. package/dist/lib/components/ui/overlays/context-menu/context-menu-sub.d.ts +8 -0
  120. package/dist/lib/components/ui/overlays/context-menu/context-menu.d.ts +4 -14
  121. package/dist/lib/components/ui/overlays/dialog/dialog-outside.d.ts +6 -0
  122. package/dist/lib/components/ui/overlays/dialog/dialog-scroll-content.d.ts +1 -1
  123. package/dist/lib/components/ui/overlays/dialog/dialog.d.ts +1 -1
  124. package/dist/lib/components/ui/overlays/dialog/use-return-focus.d.ts +3 -2
  125. package/dist/lib/components/ui/overlays/drawer/drawer.d.ts +1 -1
  126. package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu-items.d.ts +11 -0
  127. package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu-sub.d.ts +8 -0
  128. package/dist/lib/components/ui/overlays/dropdown-menu/dropdown-menu.d.ts +6 -21
  129. package/dist/lib/components/ui/overlays/popover/popover.d.ts +1 -1
  130. package/dist/lib/components/ui/overlays/sheet/sheet.d.ts +1 -1
  131. package/dist/lib/components/ui/primitives/card/card.d.ts +10 -1
  132. package/dist/lib/components/ui/primitives/link/link-component.d.ts +14 -0
  133. package/dist/lib/components/ui/selection/select/select.d.ts +1 -1
  134. package/dist/lib/components/ui/selection/select-chip-field/select-chip-field.d.ts +1 -1
  135. package/dist/lib/i18n/resources/en/en.d.ts +9 -0
  136. package/dist/lib/i18n/resources/en/material.json.d.ts +13 -4
  137. package/dist/lib/i18n/resources/fr/fr.d.ts +9 -0
  138. package/dist/lib/i18n/resources/fr/material.json.d.ts +13 -4
  139. package/dist/lib/i18n/resources/resources.d.ts +18 -0
  140. package/dist/lib/i18n/translator.d.ts +1 -1
  141. package/dist/lib/lib/redux/status-slice.d.ts +1 -1
  142. package/dist/lib.js +39 -55
  143. package/dist/main.js +13 -13
  144. package/dist/map.js +35 -35
  145. package/dist/material.css +1 -1
  146. package/dist/{merge-CuDTNgpm.js → merge-CRXQ4NSv.js} +4 -4
  147. package/dist/{mermaid.core-O7mtb1-p.js → mermaid.core-C_JPRVNa.js} +49 -49
  148. package/dist/{mindmap-definition-NLK3R4M7-CO0E97EZ.js → mindmap-definition-NLK3R4M7-OTZIWZah.js} +13 -13
  149. package/dist/{pegDiagram-GJSIUBJH-CAO6aYvj.js → pegDiagram-GJSIUBJH-CWKobqLl.js} +4 -4
  150. package/dist/{pieDiagram-5QR66LMP-BXxVfv5K.js → pieDiagram-5QR66LMP-BpmwlCYh.js} +5 -5
  151. package/dist/print.js +2 -2
  152. package/dist/{quadrantDiagram-O4NWA36T-BbidZDM8.js → quadrantDiagram-O4NWA36T-CIFt4MgA.js} +3 -3
  153. package/dist/{railroadDiagram-XR7U4H2S-DmKDXg8V.js → railroadDiagram-XR7U4H2S-fsZ7oqPG.js} +4 -4
  154. package/dist/{requirementDiagram-PLB6GJNP-wFvgSWJP.js → requirementDiagram-PLB6GJNP-BJaiDsKj.js} +13 -13
  155. package/dist/rolldown-runtime-BFFgcFxR.js +30 -0
  156. package/dist/{sankeyDiagram-IPEJSGJF-Cka5t09q.js → sankeyDiagram-IPEJSGJF-XDAIB5as.js} +3 -3
  157. package/dist/{sequenceDiagram-PO4LG4MO-B2qb55A5.js → sequenceDiagram-PO4LG4MO-Bgx1kuGA.js} +5 -5
  158. package/dist/{sortable-provider-C5VYhY8u.js → sortable-provider-MCgOzfRp.js} +24 -24
  159. package/dist/{src-C9kQSo6K.js → src-CsLQInsN.js} +1 -1
  160. package/dist/{stateDiagram-v2-GCMORJYK-EMa7q3ju.js → stateDiagram-v2-GCMORJYK-CGo16q99.js} +14 -14
  161. package/dist/{stored-language-B0o4cBh8.js → stored-language-Cz89IYZX.js} +26 -8
  162. package/dist/styles.css +10 -368
  163. package/dist/{swimlanes-2SLR337P-BtZ7Di5u.js → swimlanes-2SLR337P-DXZt0zyd.js} +12 -12
  164. package/dist/swimlanesDiagram-TC7HE7FX-Cno6MSMH.js +28 -0
  165. package/dist/{timeline-definition-EJHVYXUP-2Z6UABw8.js → timeline-definition-EJHVYXUP-CbPIZcT7.js} +5 -5
  166. package/dist/{translate-material-BCwQrt2G.js → translate-material-Caxsy0bp.js} +2 -2
  167. package/dist/{translator-CwpmpI24.js → translator-B85Q_O55.js} +1 -1
  168. package/dist/{use-heading-spy-BtBJiU63.js → use-heading-spy-C4yWEr5c.js} +37 -37
  169. package/dist/{use-material-translation-DG_7z3Q7.js → use-material-translation-Cm3Ej3bT.js} +2 -2
  170. package/dist/{usecaseDiagram-POWQR4AR-DT56cp_B.js → usecaseDiagram-POWQR4AR-D_gyFA3m.js} +13 -13
  171. package/dist/{utils-UBn-46YY.js → utils-DC8bw9A_.js} +346 -360
  172. package/dist/{vennDiagram-UO4OBE2U-CO0yFCI8.js → vennDiagram-UO4OBE2U-BpgP__1T.js} +4 -4
  173. package/dist/{wardleyDiagram-VNRHLVJA-QkwghAYo.js → wardleyDiagram-VNRHLVJA-CYqKMb2f.js} +4 -4
  174. package/dist/{xychartDiagram-PMCCYNJV-B2aZlrno.js → xychartDiagram-PMCCYNJV-W-fXV6iN.js} +7 -7
  175. package/docs/components/buttons-and-actions.md +60 -10
  176. package/docs/components/data-display.md +23 -1
  177. package/docs/components/data-table-filter-and-lists.md +88 -10
  178. package/docs/components/date-and-time.md +24 -0
  179. package/docs/components/feedback-and-status.md +85 -8
  180. package/docs/components/form-fields.md +14 -5
  181. package/docs/components/media-and-files.md +7 -0
  182. package/docs/components/navigation-and-layout.md +21 -3
  183. package/docs/components/overlays-and-menus.md +21 -6
  184. package/docs/components/primitives.md +16 -2
  185. package/docs/components/selection-and-choice.md +13 -2
  186. package/docs/getting-started.md +4 -2
  187. package/docs/guides/app-shell.md +97 -4
  188. package/docs/guides/forms.md +54 -5
  189. package/docs/guides/helpers.md +2 -2
  190. package/docs/guides/i18n.md +5 -2
  191. package/docs/guides/ssr.md +1 -1
  192. package/docs/guides/theming.md +133 -5
  193. package/docs/previews/data-display-description.webp +0 -0
  194. package/docs/previews/feedback-status-toast.webp +0 -0
  195. package/docs/roadmap.md +22 -1
  196. package/docs/troubleshooting.md +902 -11
  197. package/lib/components/base-content.css +139 -0
  198. package/lib/components/base.css +150 -0
  199. package/lib/components/components.css +2 -0
  200. package/lib/components/reduced-motion.css +56 -0
  201. package/lib/components/theme-tokens.css +116 -0
  202. package/lib/components/ui/actions/button-group/button-group.css +1 -1
  203. package/lib/components/ui/feedback/toast/toast.css +21 -0
  204. package/lib/components/ui/primitives/label/label.css +33 -0
  205. package/lib/styles.css +10 -368
  206. package/package.json +2 -2
  207. package/dist/field-blur-DWQtxiAe.js +0 -3483
  208. package/dist/flowDiagram-KWPJA3E3-DZxumFfu.js +0 -17
  209. package/dist/icon-button-BxySFfrr.js +0 -2718
  210. package/dist/swimlanesDiagram-TC7HE7FX-CROh8GTF.js +0 -28
@@ -19,6 +19,26 @@ words in your error.
19
19
 
20
20
  - [Components render unstyled, with no error](#components-render-unstyled-with-no-error)
21
21
  - [`<Icon>` renders nothing](#icon-renders-nothing)
22
+ - [An accessibility audit reports low contrast on a badge, a button, a toast or a menu entry](#an-accessibility-audit-reports-low-contrast-on-a-badge-a-button-a-toast-or-a-menu-entry)
23
+ - [`ARIA hidden element must not be focusable or contain focusable elements`](#aria-hidden-element-must-not-be-focusable-or-contain-focusable-elements)
24
+ - [An accessibility audit reports low contrast on a tonal or outlined button, a selected list tile or a hovered badge link](#an-accessibility-audit-reports-low-contrast-on-a-tonal-or-outlined-button-a-selected-list-tile-or-a-hovered-badge-link)
25
+ - [An accessibility audit reports low contrast on error text in the dark theme](#an-accessibility-audit-reports-low-contrast-on-error-text-in-the-dark-theme)
26
+ - [Dialogs, toasts or buttons no longer animate](#dialogs-toasts-or-buttons-no-longer-animate)
27
+ - [A Button's label overflows a card on a phone](#a-buttons-label-overflows-a-card-on-a-phone)
28
+
29
+ **Feedback**
30
+
31
+ - [A toast with an action never goes away](#a-toast-with-an-action-never-goes-away)
32
+ - [A toast covers the form's button on a phone](#a-toast-covers-the-forms-button-on-a-phone)
33
+ - [A toast never goes away after a tap](#a-toast-never-goes-away-after-a-tap)
34
+ - [A toast's action cannot be clicked while a dialog is open](#a-toasts-action-cannot-be-clicked-while-a-dialog-is-open)
35
+ - [A `ConfirmationDialog` reopened with new content blocks clicks](#a-confirmationdialog-reopened-with-new-content-blocks-clicks)
36
+ - [The first Escape after closing a nested dialog does nothing](#the-first-escape-after-closing-a-nested-dialog-does-nothing)
37
+
38
+ **Navigation**
39
+
40
+ - [A `ListTile` link reloads the whole page](#a-listtile-link-reloads-the-whole-page)
41
+ - [The phone menu needs two Escapes to close, or a tooltip shows over it](#the-phone-menu-needs-two-escapes-to-close-or-a-tooltip-shows-over-it)
22
42
 
23
43
  **SSR & build**
24
44
 
@@ -73,18 +93,24 @@ words in your error.
73
93
  - [A translation key is rendered instead of its text](#a-translation-key-is-rendered-instead-of-its-text)
74
94
  - [A label shows `{count}` or another placeholder](#a-label-shows-count-or-another-placeholder)
75
95
  - [Zod messages ignore the language, or your `material.zod.*` strings](#zod-messages-ignore-the-language-or-your-materialzod-strings)
96
+ - [A test asserting the old Zod string length text fails](#a-test-asserting-the-old-zod-string-length-text-fails)
97
+ - [A calendar's weekday row is in English on a French page](#a-calendars-weekday-row-is-in-english-on-a-french-page)
76
98
 
77
99
  **Runtime**
78
100
 
79
101
  - [`must be used within` / `must be used inside` (context providers)](#must-be-used-within--must-be-used-inside)
80
102
  - [`Camera components must be used inside <Camera>`](#camera-components-must-be-used-inside-camera)
81
103
  - [`Clipboard is not available`](#clipboard-is-not-available)
104
+ - [A test no longer finds `CopyButton` by "Copied", or its name changes](#a-test-no-longer-finds-copybutton-by-copied-or-its-name-changes)
82
105
  - [`Upload failed with status 403`](#upload-failed-with-status-403)
83
106
  - [`Network error during upload`](#network-error-during-upload)
84
107
  - [`Maximum number of presets (20) reached`](#maximum-number-of-presets-20-reached)
108
+ - [`` Cannot update a component (`DataTable`) while rendering a different component ``](#cannot-update-a-component-datatable-while-rendering-a-different-component)
85
109
  - [`Failed to execute 'exitFullscreen' on 'Document': Document not active`](#failed-to-execute-exitfullscreen-on-document-document-not-active)
86
110
  - [A `SwitchFormField` shows no validation message](#a-switchformfield-shows-no-validation-message)
87
111
  - [A `TimeFormField` shows its error on a desktop but not on a phone](#a-timeformfield-shows-its-error-on-a-desktop-but-not-on-a-phone)
112
+ - [`setError(…, { shouldFocus: true })` or a failed submit does not focus the field](#seterror--shouldfocus-true--or-a-failed-submit-does-not-focus-the-field)
113
+ - [A test that finds a chip by `aria-selected` or `getByRole('option')` no longer finds it](#a-test-that-finds-a-chip-by-aria-selected-or-getbyroleoption-no-longer-finds-it)
88
114
  - [`touchedFields` stays empty after leaving a field, or `mode: 'onBlur'` never validates](#touchedfields-stays-empty-after-leaving-a-field-or-mode-onblur-never-validates)
89
115
  - [`TypeError: values.map is not a function` (a `SliderFormField`)](#typeerror-valuesmap-is-not-a-function)
90
116
  - [An end-to-end test no longer finds `aria-expanded` on a `ResponsiveButton`](#an-end-to-end-test-no-longer-finds-aria-expanded-on-a-responsivebutton)
@@ -104,20 +130,36 @@ words in your error.
104
130
  - [A test no longer finds `aria-invalid` on an upload field's group or drop zone](#a-test-no-longer-finds-aria-invalid-on-an-upload-fields-group-or-drop-zone)
105
131
  - [A test no longer finds `aria-invalid` on a `CheckboxGroup`](#a-test-no-longer-finds-aria-invalid-on-a-checkboxgroup)
106
132
  - [A test no longer finds `aria-invalid` on a `Switch` row or an `Autocomplete`'s chips](#a-test-no-longer-finds-aria-invalid-on-a-switch-row-or-an-autocompletes-chips)
133
+ - [A test no longer finds `aria-invalid` on an `OtpField` slot](#a-test-no-longer-finds-aria-invalid-on-an-otpfield-slot)
107
134
  - [A test no longer finds the breadcrumb's home button](#a-test-no-longer-finds-the-breadcrumbs-home-button)
135
+ - [A test no longer finds a sidebar entry by the `button` role](#a-test-no-longer-finds-a-sidebar-entry-by-the-button-role)
136
+ - [The app shell's page scrolls instead of its content, or a full-height screen collapses](#the-app-shells-page-scrolls-instead-of-its-content-or-a-full-height-screen-collapses)
137
+ - [A `className` on `ActivityLayout` now styles the whole shell](#a-classname-on-activitylayout-now-styles-the-whole-shell)
138
+ - [A test finds a new heading or a second `main`, or no longer finds a title in a `div`](#a-test-finds-a-new-heading-or-a-second-main-or-no-longer-finds-a-title-in-a-div)
139
+ - [`[data-test="typogaphy"]` finds nothing](#data-testtypogaphy-finds-nothing)
140
+ - [A test no longer finds a tooltip on an entry of an expanded sidebar](#a-test-no-longer-finds-a-tooltip-on-an-entry-of-an-expanded-sidebar)
141
+ - [A test no longer finds a calendar day by its number, or by "Today" or "selected"](#a-test-no-longer-finds-a-calendar-day-by-its-number-or-by-today-or-selected)
108
142
  - [`#<name>` no longer finds a `SwitchFormField` or `CheckboxFormField`](#name-no-longer-finds-a-switchformfield-or-checkboxformfield)
109
143
  - [`#<name>` or `#<option value>` no longer finds a radio or checkbox group or one of its options](#name-or-option-value-no-longer-finds-a-radio-or-checkbox-group-or-one-of-its-options)
144
+ - [`#<name>` no longer finds a text, OTP, number, date or picker form field, or a second form's field has no name](#name-no-longer-finds-a-text-otp-number-date-or-picker-form-field-or-a-second-forms-field-has-no-name)
145
+ - [A double click or Enter submits a form twice, or a test finds `aria-busy` in an idle `Button`](#a-double-click-or-enter-submits-a-form-twice-or-a-test-finds-aria-busy-in-an-idle-button)
110
146
  - [An empty `UploadField` or `TimeField` is no longer tinted](#an-empty-uploadfield-or-timefield-is-no-longer-tinted)
111
147
  - [`ConfirmDialog` buttons stay in English](#confirmdialog-buttons-stay-in-english)
112
148
  - [A `ConfirmationDialog` opened with `open` no longer closes](#a-confirmationdialog-opened-with-open-no-longer-closes)
113
149
  - [A menu item selected by `[data-variant=destructive]` stops matching](#a-menu-item-selected-by-data-variantdestructive-stops-matching)
150
+ - [A menu no longer blocks the page, or a `ResponsiveButton` has no `useIsMobile` behaviour](#a-menu-no-longer-blocks-the-page-or-a-responsivebutton-has-no-useismobile-behaviour)
114
151
  - [A `Stepper` step selected by `#step-N` stops matching](#a-stepper-step-selected-by-step-n-stops-matching)
115
152
  - [Keys typed right after opening a dialog, sheet or drawer land inside it](#keys-typed-right-after-opening-a-dialog-sheet-or-drawer-land-inside-it)
153
+ - [Focus moves into a dialog although `onOpenAutoFocus` prevented it](#focus-moves-into-a-dialog-although-onopenautofocus-prevented-it)
116
154
  - [A `TimePicker` test expects AM / PM to add 12 hours, or a click on the pressed half to switch to PM](#a-timepicker-test-expects-am--pm-to-add-12-hours-or-a-click-on-the-pressed-half-to-switch-to-pm)
117
155
  - [Focus is no longer in a `Tree` after it renders](#focus-is-no-longer-in-a-tree-after-it-renders)
118
156
  - [A link or button in the first column of a `DataTable` with `getRowHref`](#a-link-or-button-in-the-first-column-of-a-datatable-with-getrowhref)
119
157
  - [A row does not navigate after `onRowClick` ran](#a-row-does-not-navigate-after-onrowclick-ran)
120
158
  - [A `DataTable` Previous or Next button is disabled](#a-datatable-previous-or-next-button-is-disabled)
159
+ - [A `DataTable` no longer scrolls inside a 400px box](#a-datatable-no-longer-scrolls-inside-a-400px-box)
160
+ - [A `DataTable` shows its header row on a phone](#a-datatable-shows-its-header-row-on-a-phone)
161
+ - [A test's `getByRole('region')` finds more than one region](#a-tests-getbyroleregion-finds-more-than-one-region)
162
+ - [A `DataTable` toolbar is gone](#a-datatable-toolbar-is-gone)
121
163
 
122
164
  **PDF reader**
123
165
 
@@ -332,6 +374,386 @@ public/assets/icons/sprites/sharp-solid.svg ← <Icon name="atom" family="sharp"
332
374
 
333
375
  Serve one sheet per style you use, from your own Font Awesome Pro kit.
334
376
 
377
+ ### An accessibility audit reports low contrast on a badge, a button, a toast or a menu entry
378
+
379
+ **When:** axe (or Lighthouse) reports `color-contrast` on a `Badge` with
380
+ `variant="success"`, `"info"`, `"warning"` or `"secondary"`; on a filled
381
+ `secondary`, `success`, `info` or `warning` `Button` or `IconButton` in the
382
+ dark theme; on a filled `Button` or `IconButton` while it is hovered, focused
383
+ or pressed; on muted text on a `bg-muted` surface (an `Alert`
384
+ `variant="foreground"`, the default `Timeline` marker, code) or on the
385
+ "paper" tint; on a toast's title or description while it enters, or its X
386
+ button; or on the muted text (a shortcut, the `LanguageSwitcher` code) of a
387
+ highlighted menu entry, or on a calendar's weekday row in the dark theme.
388
+ **Why:** the colours come from your tokens and the components' state tints.
389
+ Before this fix, concretely: the light `--secondary`,
390
+ `--success`, `--info` and `--warning` gave their near-white text 4.3:1,
391
+ 3.5:1, 2.5:1 and 3.4:1; the light `--muted-foreground` read 4.3:1 on
392
+ `--muted` and 4.4:1 on the paper tint, and the dark `--muted` was the light,
393
+ near-white value, so muted text on `bg-muted` failed in the dark theme too;
394
+ in the dark theme a filled `secondary`, `success`, `info` or `warning` button
395
+ gave 4.3:1, 3.5:1, 2.5:1 and 3.4:1, and its hover, focus and pressed tints
396
+ less; in the light theme a filled button faded toward the page when hovered,
397
+ focused or pressed (`/90`, `/80`, `/70`: down to 3.1:1 pressed); a library
398
+ toast started at opacity 0, so an audit run while it entered measured its
399
+ text faded; and the toast and the highlighted entry used the muted colour on
400
+ a background it does not reach 4.5:1 on; the dark `--muted-foreground` of a
401
+ calendar's weekday row reached 3.7:1 on a popover. If the audit still fails, your
402
+ stylesheet overrides one of those tokens, a `className` of your own puts the old
403
+ state tints back, or you still ship one of those versions.
404
+ **Fix:** update, remove the override, or pick a colour that keeps 4.5:1 with
405
+ its `-foreground`:
406
+
407
+ ```css
408
+ :root {
409
+ --info: oklch(0.5 0.165 254.624); /* 5.8:1 with --info-foreground */
410
+ }
411
+ ```
412
+
413
+ A toast the library renders, through `toast()` or `toasts.*` from
414
+ `@nxgt/material` (sonner's `toast.custom` path, marked
415
+ `data-styled="false"`), no longer fades its text in: the wrapper stays opaque
416
+ while it slides in, so an audit run while it enters measures the settled
417
+ colours. A toast sonner styles itself still fades in from opacity 0: a plain
418
+ `toast('…')` or `toast.success('…')` from `sonner`, or `sonnerToast` from this
419
+ package. Show it through `toasts.*` instead. If a library toast still reports
420
+ its title as low contrast, an override of `[data-sonner-toast]` sets its
421
+ `opacity` back to 0 on mount.
422
+
423
+ The muted text on a `bg-muted` surface (an `Alert` `variant="foreground"`, the
424
+ default `Timeline` marker) and on the "paper" tint failed in the shipped
425
+ palette too (4.3:1 and 4.4:1 in light; the dark `--muted` was the light one).
426
+ They pass since the `--muted` and `--muted-foreground` tokens changed: if
427
+ yours still fail, you override them.
428
+
429
+ In the dark theme, a filled `secondary` `Button` gave its near-white text
430
+ 4.3:1, a `tonal` secondary one 3.9:1 (3.4:1 on `--card`), and a filled
431
+ `success`, `info` or `warning` one 3.5:1, 2.5:1 and 3.4:1. The dark
432
+ `--secondary` is brighter (`oklch(0.66 ...)`, 6.5:1 as text on
433
+ `--background`), and the filled `secondary`, `success`, `info` and `warning`
434
+ `Button`s and `IconButton`s are tinted in the dark theme
435
+ (`dark:bg-secondary/70`, `dark:bg-success/60`, …) so their text keeps 4.5:1.
436
+ A filled button given a background of your own through `className` loses the
437
+ tint in dark mode: add a matching `dark:` one.
438
+
439
+ ### `ARIA hidden element must not be focusable or contain focusable elements`
440
+
441
+ **When:** an accessibility audit (axe, Lighthouse, the Storybook
442
+ accessibility panel) runs while a `Dialog`, `Sheet`, `Drawer`,
443
+ `AlertDialog`, `CommandDialog`, a `Select` list, a `ContextMenu`, or a
444
+ `modal` `DropdownMenu` or `Popover` is open, and reports `aria-hidden-focus`
445
+ on the page behind it: its buttons, links and fields.
446
+ **Why:** Radix marks the rest of the page `aria-hidden` while a modal layer
447
+ is open and leaves it focusable; a control the tab order reaches inside an
448
+ `aria-hidden` subtree is what the rule reports. A version of @nxgt/material that
449
+ reports it predates the inert background.
450
+ **Fix:** upgrade: the page behind a modal layer of this library is `inert`
451
+ as well — out of the tab order and of the accessibility tree — and the rule
452
+ passes. Live regions (the `Toaster`) stay reachable. Do not exclude
453
+ `[aria-hidden]` or `[data-aria-hidden]` from the audit: it hides real
454
+ failures. A layer of yours built on Radix directly (not on these
455
+ components) still marks the page `aria-hidden` only; make the rest of the
456
+ page inert with core's `inertOthers`, which keeps live regions and counts
457
+ nested layers:
458
+
459
+ ```tsx
460
+ import { inertOthers } from '@nxgt/material-core/inert-others';
461
+
462
+ // content: your layer's content element, in state (a callback ref).
463
+ useEffect(
464
+ () => (open && content ? inertOthers(content) : undefined),
465
+ [open, content],
466
+ );
467
+ ```
468
+
469
+ Elements mounted after the layer opens are not made inert: mount them
470
+ first, or pass them to `inertOthers` in `keep` when they must stay
471
+ reachable.
472
+
473
+ ### An accessibility audit reports low contrast on a tonal or outlined button, a selected list tile or a hovered badge link
474
+
475
+ **When:** axe (or Lighthouse) reports `color-contrast` on a `tonal` or
476
+ `outlined` `Button` or `IconButton` (`primary` in the dark theme, `error`,
477
+ `warning` and `success`), at rest or hovered, focused or pressed; on the
478
+ subtitle of a selected `ListTile`; or on a `Badge` link while it is hovered.
479
+ **Why:** those variants drew their text in the token itself, and some tokens
480
+ do not reach 4.5:1 as text on the page and on their own tint: the dark
481
+ `--primary` is a dark indigo (2.2:1 on `--card`), the light `--error` gave
482
+ 3.6:1 on its tonal tint, `--warning` 4.3:1, the dark `--success` 4.0:1 on
483
+ `--card`. The selected tile's tint brought the muted subtitle to 4.4:1, and a
484
+ `Badge` link faded toward the page on hover (`/90`: down to 3.0:1 for `info`
485
+ in the dark theme). A release that has the fix mixes those tones from the
486
+ tokens, toward black in the light theme and toward white in the dark one; if
487
+ the audit still fails, a text colour of your own replaces the tone, or a
488
+ token of yours is too light (or, in the dark theme, too dark) to read as text.
489
+ **Fix:** update, then drop the text colour you put on the button, or check
490
+ your token against the page at 4.5:1:
491
+
492
+ ```tsx
493
+ // before: the tone is replaced by the raw token
494
+ <Button variant="tonal" color="error" className="text-error">Delete</Button>
495
+ // after
496
+ <Button variant="tonal" color="error">Delete</Button>
497
+ ```
498
+
499
+ A `Badge` link of your own with a hover fade such as `[a&]:hover:bg-error/90`
500
+ in its `className` puts the fade back: darken instead, as in
501
+ `[a&]:hover:bg-[color-mix(in_oklab,var(--color-error)_90%,black)]` (with
502
+ your badge's colour in place of `error`). A
503
+ subtitle colour of your own on a selected `ListTile` must reach 4.5:1 on
504
+ `bg-primary/15`.
505
+
506
+ ### An accessibility audit reports low contrast on error text in the dark theme
507
+
508
+ **When:** an error message, a validation hint or a red value of your own, in
509
+ the dark theme, fails 4.5:1 (about 4.2:1 on the page, 3.8:1 on a card); the
510
+ catalogue's own field messages pass.
511
+ **Why:** it is drawn with `text-error`, the fill colour. The dark `--error` is
512
+ kept dark enough for near-white text on a filled error surface, which makes it
513
+ too dark to read as text on the dark surfaces. Error text has its own token,
514
+ `--error-text`, lightened in the dark theme (5.9:1 on `--background`, 5.3:1 on
515
+ `--card`).
516
+ **Fix:** draw text with `text-error-text`; keep `text-error` for fills,
517
+ borders and icons that stand alone. On a `Button` or `IconButton` drop the
518
+ class instead: the tone already colours the text:
519
+
520
+ ```tsx
521
+ // before
522
+ <p className="text-sm text-error">Enter a valid email</p>
523
+ // after
524
+ <p className="text-sm text-error-text">Enter a valid email</p>
525
+ ```
526
+
527
+ Setting `--error` or `--error-text` on an element below the root (a `style`
528
+ on a section) changes nothing: `@theme` resolves `--color-error-text` on the
529
+ root. Below the root, set `--color-error-text` (and `--color-error` for fills)
530
+ on that element, or put the override on the root.
531
+
532
+ ### Dialogs, toasts or buttons no longer animate
533
+
534
+ **When:** a transition or an animation of a catalogue component does not run
535
+ on your machine, while it does on a colleague's.
536
+ **Why:** the operating system has "Reduce motion" on. `styles.css` honours
537
+ `prefers-reduced-motion: reduce` for every component (dialogs, sheets, menus,
538
+ toasts, buttons) and leaves only the `Spinner` and
539
+ `animate-spin` elements turning.
540
+ **Fix:** none is needed, this is the intended behaviour. To test the animated
541
+ version, turn the setting off (or, in Chrome DevTools, Rendering, "Emulate CSS
542
+ media feature prefers-reduced-motion": no-preference). To keep one animation
543
+ for everyone, override it with an `!important` rule on that element inside
544
+ `@media (prefers-reduced-motion: reduce)`.
545
+
546
+ ### A Button's label overflows a card on a phone
547
+
548
+ **When:** on a narrow screen, a `Button` with a long label sticks out of its
549
+ card, dialog or column (a 349 px button in a 343 px card), or its label is
550
+ clipped at both ends with no "…".
551
+ **Why:** before this change, the button took its label's whole width
552
+ (`width: max-content`) whatever its container. A button is now never wider
553
+ than its container (`max-width: 100%`), and its text is put in a
554
+ `<span data-slot="button-label">` (one span per run of text, so `Delete {name}?` is one piece) that shrinks and ends in "…". The reverse
555
+ is the same change: a button that grew past its container now truncates.
556
+ The ellipsis needs the text as the button's own child: with `asChild`, text
557
+ inside the child element is clipped without one.
558
+ **Fix:** update. Then pick, for each long label: leave the ellipsis (give a
559
+ `title` so a sighted user can read it whole; the accessible name already
560
+ is), let it break onto lines with `wrap`, or give the button a width of
561
+ your own through `className`. With `asChild`, put the label in a `<span>`:
562
+
563
+ ```tsx
564
+ <Button title="Continue to the payment details">Continue to the payment details</Button>
565
+ <Button wrap>Continue to the payment details and confirm the order</Button>
566
+ <Button className="w-full">Continue</Button>
567
+ <Button asChild>
568
+ <a href="/pay"><span>Continue to the payment details</span></a>
569
+ </Button>
570
+ ```
571
+
572
+ ## Feedback
573
+
574
+ ### A toast with an action never goes away
575
+
576
+ **When:** a test, or a user, waits for a toast to disappear by itself, and one
577
+ that carries an `action` (`toast({ action })`, or `toasts.info({ action })`
578
+ and the other presets with your own action) is still there.
579
+ **Why:** a toast with an `action` is persistent: `toast()` sets
580
+ `options.duration` to `Infinity` (WCAG 2.2.1: a timed toast can vanish before
581
+ a keyboard or screen-reader user reaches its button). Without an `action` a
582
+ preset times out after 5 seconds.
583
+ **Fix:** pass a duration, or close it:
584
+
585
+ ```ts
586
+ toasts.info({ action, options: { duration: 8000 } }); // times out again
587
+ toasts.dismiss(id); // or toasts.dismiss() for all of them
588
+ ```
589
+
590
+ Users close it with its X button (named "Close", or "Fermer" in French),
591
+ with Escape while focus is inside it, or with the action itself. In a test,
592
+ click `getByRole('button', { name: 'Close' })` or call `toasts.dismiss()`.
593
+
594
+ ### A toast covers the form's button on a phone
595
+
596
+ **When:** on a phone, a toast shows across the bottom of the screen, over a
597
+ form's submit button (or anything else kept at the bottom), until it goes.
598
+ **Why:** under 600px wide, Sonner lays toasts out across the whole width, and
599
+ its default `position` is `bottom-right`, so the bottom of the screen. The
600
+ `Toaster` now shows them at the top (`top-center`) on a phone when it is given
601
+ no `position`; it still covers the bottom when the app mounts Sonner's own
602
+ `Toaster` (`import { Toaster } from 'sonner'`), or passes a bottom `position`,
603
+ which applies on every screen.
604
+ **Fix:** mount the `Toaster` from `@nxgt/material/components`, and drop a bottom
605
+ `position` unless the bottom is what you want on phones too. When a sticky
606
+ header must stay visible above the toasts, raise the phone offset's `top`:
607
+
608
+ ```tsx
609
+ <Toaster /> // top-center on a phone
610
+ <Toaster mobileOffset={{ top: 72 }} />
611
+ <Toaster position="bottom-center" /> // bottom-center on every screen
612
+ ```
613
+
614
+ ### A toast never goes away after a tap
615
+
616
+ **When:** on a phone (or any touch screen), a toast that should time out stays
617
+ on the screen after the user tapped it, and only goes after a tap somewhere
618
+ else.
619
+ **Why:** a toast pauses while a mouse hovers it (WCAG 2.2.1). After a tap, the
620
+ browser emulates a mouse that arrives over the toast and never leaves, and
621
+ Sonner read that as a hover, so the toast stayed paused.
622
+ **Fix:** update, and mount the `Toaster` from `@nxgt/material/components`: it
623
+ ignores the hover a tap emulates (`@nxgt/material-core/touch-hover`), so a
624
+ tapped toast pauses while the finger is down and goes after its duration; a
625
+ mouse still pauses it. Sonner's own `Toaster`
626
+ (`import { Toaster } from 'sonner'`) keeps the old behaviour. A toast with an
627
+ `action` is meant to stay: see
628
+ [A toast with an action never goes away](#a-toast-with-an-action-never-goes-away).
629
+
630
+ ### A toast's action cannot be clicked while a dialog is open
631
+
632
+ **When:** a toast with an `action` (or a close button) shows over an open
633
+ `Dialog`, `AlertDialog`, `Sheet` or `Drawer`: the pointer does nothing on it,
634
+ or a click on it closes the dialog.
635
+ **Why:** a modal layer sets `pointer-events: none` on `<body>`, and the
636
+ `Toaster` inherited it, so its toasts could not be clicked; the layer also
637
+ counted a pointer down on a toast as outside the dialog.
638
+ **Fix:** update `@nxgt/material` and mount its `Toaster`: it sets
639
+ `pointer-events: auto`, and the modal contents treat a pointer down or a focus
640
+ inside the `Toaster` as inside, so the action runs and the dialog stays open.
641
+ Sonner's own `Toaster` keeps the old behaviour.
642
+
643
+ ### A `ConfirmationDialog` reopened with new content blocks clicks
644
+
645
+ **When:** a `ConfirmationDialog` or a `ConfirmDialog` (or a `Dialog`,
646
+ `AlertDialog` or `Sheet` of your own) closes on Confirm and your page opens it
647
+ again straight away with the next step's title and text. The second dialog
648
+ shows, but its Confirm does nothing: a click lands on the dimmed overlay.
649
+ Giving the dialog a `key` per step made it go away.
650
+ **Why:** Radix portals the overlay and the content to `<body>` separately, and
651
+ each leaves when its own exit animation ends: the overlay's (150ms) before the
652
+ content's (200ms for a dialog, 300ms for a sheet). Reopened between the two,
653
+ the new overlay was appended after the content still on the page and, at the
654
+ same `z-index`, painted over it. Nothing was left behind once both closed:
655
+ `<body>` got its `pointer-events` back.
656
+ **Fix:** update: the overlay is now kept under its content. The `key` is no
657
+ longer needed; one dialog whose `title` follows the step is enough:
658
+
659
+ ```tsx
660
+ const [step, setStep] = useState(0);
661
+ const [open, setOpen] = useState(false);
662
+
663
+ <ConfirmationDialog
664
+ open={open}
665
+ onOpenChange={setOpen}
666
+ title={steps[step].title}
667
+ onConfirm={async () => {
668
+ if (step === 0) {
669
+ setStep(1);
670
+ await saveDraft(); // the dialog has closed; reopen it with step 2
671
+ setOpen(true);
672
+ }
673
+ }}
674
+ />
675
+ ```
676
+
677
+ ### The first Escape after closing a nested dialog does nothing
678
+
679
+ **When:** an `AlertDialog` (a `ConfirmationDialog`, a `Dialog`, a `Sheet` or a
680
+ `Drawer`) opened over another overlay — a `Sheet` with a Delete that asks for
681
+ confirmation — is closed with Escape or Cancel, and the user presses Escape
682
+ again at once to close the `Sheet` too. The `Sheet` stays open; a second
683
+ Escape, a moment later, closes it. A test that presses Escape twice in a row
684
+ fails the same way.
685
+ **Why:** Radix hands Escape to the highest overlay only, and an overlay stops
686
+ being one when its content leaves the page, not when it closes. The closed
687
+ alert stays on the page for its exit animation (200ms for a dialog, 300ms for
688
+ a sheet, 500ms for a drawer): an Escape pressed meanwhile went to it, and it
689
+ was already closed. Moving focus back to the `Sheet` sooner would not help:
690
+ Radix listens for Escape on the document, wherever focus is.
691
+ **Fix:** update: `AlertDialogContent`, `DialogContent`, `SheetContent` and
692
+ `DrawerContent` now press Escape again, for the overlay below, once a
693
+ content that was closing has left. Nothing to change in your code. Your
694
+ `onEscapeKeyDown` still runs first, on both presses; preventing the default
695
+ while yours is closing keeps the key from being forwarded:
696
+
697
+ ```tsx
698
+ const [confirm, setConfirm] = useState(false);
699
+
700
+ <AlertDialog open={confirm} onOpenChange={setConfirm}>
701
+ <AlertDialogContent
702
+ onEscapeKeyDown={(event) => {
703
+ if (!confirm) event.preventDefault(); // closing: the Sheet stays open
704
+ }}
705
+ >
706
+ …
707
+ </AlertDialogContent>
708
+ </AlertDialog>
709
+ ```
710
+
711
+ With no overlay below, the forwarded Escape reaches the page's own `keydown`
712
+ handlers; an app shortcut that should ignore it can check `event.isTrusted` or
713
+ `event.defaultPrevented`.
714
+
715
+ In a test, wait for the `Sheet` to leave the DOM (the forwarded Escape lands
716
+ a few frames after the alert has gone) and look it up by selector rather
717
+ than by role: the closing alert still hides the page from the accessibility
718
+ tree.
719
+
720
+ ## Navigation
721
+
722
+ ### A `ListTile` link reloads the whole page
723
+
724
+ **When:** a `ListTile` with an `href` is clicked inside a router app: the
725
+ browser loads the document again, the page flashes, and client state is lost.
726
+ **Why:** by default the tile renders a plain `<a href>`, which needs no router
727
+ and so cannot navigate on the client.
728
+ **Fix:** pass `linkComponent`, with the same contract as the app shell's: it
729
+ takes `href`, spreads every other prop and forwards `ref`. React Router's
730
+ `Link` takes `to`, so wrap it:
731
+
732
+ ```tsx
733
+ import { Link } from 'react-router';
734
+ import type { AppShellLinkComponent } from '@nxgt/material/components';
735
+ import { ListTile } from '@nxgt/material/components';
736
+
737
+ // Hoisted, outside the render: not a new component on every render.
738
+ const RouterLink: AppShellLinkComponent = ({ href, ...props }) => (
739
+ <Link to={href} {...props} />
740
+ );
741
+
742
+ <ListTile title="Notifications" href="/settings/notifications" linkComponent={RouterLink} />
743
+ ```
744
+
745
+ ### The phone menu needs two Escapes to close, or a tooltip shows over it
746
+
747
+ **When:** on a phone, the menu sheet of `ActivityLayout` or `AppHeader` opens
748
+ with a tooltip repeating the first entry's label over the menu, and a plain
749
+ open sheet needs two Escapes to close: the first one closes the tooltip.
750
+ **Why:** the entries of the sheet's expanded sidebar carried a tooltip, and
751
+ focus lands on the first entry as the sheet opens, which opened its tooltip;
752
+ the tooltip's own layer takes the first Escape.
753
+ **Fix:** update `@nxgt/material`. An entry of an expanded `Sidebar` now shows no
754
+ tooltip, since it shows its label; a collapsed one keeps it, and an explicit
755
+ `tooltip` is always shown. A `SidebarMenuItem` of your own needs no change.
756
+
335
757
  ## SSR & build
336
758
 
337
759
  ### `ReferenceError: window is not defined`
@@ -1184,8 +1606,59 @@ z.config({ customError: zodLocaleError({ storageKey: 'lang', translate }) });
1184
1606
  z.config({ customError: zodLocaleError({ language: () => requestLanguage() }) });
1185
1607
  ```
1186
1608
 
1609
+ ### A calendar's weekday row is in English on a French page
1610
+
1611
+ **When:** under `<I18nProvider>` set to French, a `DateField`,
1612
+ `DateRangeField` or `Calendar` names its days in French but its weekday row
1613
+ reads "Su", "Mo"… and the week starts on Sunday.
1614
+ **Why:** before the calendar followed the provider's language, it took
1615
+ react-day-picker's default English `locale`, which shapes the weekday row
1616
+ ("cccccc"), its labels ("Monday") and the first day of the week.
1617
+ **Fix:** update: the `locale` prop, else the `I18nProvider` language, else
1618
+ English drives the whole calendar, weekday row included ("lu", "ma"…, Monday
1619
+ first, each header labelled "lundi"…). To force another language on one
1620
+ calendar, pass its date-fns locale:
1621
+
1622
+ ```tsx
1623
+ import { enUS } from 'react-day-picker/locale';
1624
+
1625
+ <DateField locale={enUS} label="Delivery date" value={date} onValueChange={setDate} />
1626
+ ```
1627
+
1628
+ react-day-picker hides the weekday row from assistive tech
1629
+ (`<thead aria-hidden>`); in a test, find a day by its full date instead
1630
+ (`getByRole('gridcell', { name: 'jeudi 1 octobre 2026' })`).
1631
+
1187
1632
  ## Runtime
1188
1633
 
1634
+ ### A test asserting the old Zod string length text fails
1635
+
1636
+ **When:** after upgrading past the release that lists this fix, a test or a
1637
+ snapshot that asserted a string length message from `zodLocaleError` fails:
1638
+ it expected `This value is too small: it must be at least 3 characters.`
1639
+ (French `Cette valeur est trop petite : …`) and gets `Must contain at least 3
1640
+ characters.` (`Doit contenir au moins 3 caractères.`).
1641
+ **Why:** a string's `min` and `max` read as a length now, through
1642
+ the keys `material.zod.too_small_string_inclusive` / `_exclusive` and
1643
+ `material.zod.too_big_string_inclusive` / `_exclusive`, which pluralize the
1644
+ count: `z.string().min(1)` says `Must contain at least 1 character.` /
1645
+ `Doit contenir au moins 1 caractère.`. A number, a list, a set or a file
1646
+ keeps the "too large / too small" wording. A French `invalid_format` noun
1647
+ opens with a capital too (`Adresse e-mail invalide.`).
1648
+ **Fix:** update the expected text, or override the new keys in your app's
1649
+ `material.zod.*` resources to keep your own wording (an override of
1650
+ `too_small_inclusive` no longer applies to strings):
1651
+
1652
+ ```json
1653
+ {
1654
+ "material": {
1655
+ "zod": {
1656
+ "too_small_string_inclusive": "At least {minimum, plural, one {# character} other {# characters}}, please."
1657
+ }
1658
+ }
1659
+ }
1660
+ ```
1661
+
1189
1662
  ### `must be used within` / `must be used inside`
1190
1663
 
1191
1664
  **When:** on render, from a sub-component or a context hook used outside the
@@ -1299,7 +1772,34 @@ try {
1299
1772
  ```
1300
1773
 
1301
1774
  Serve the app over `https` (or `localhost`) in any environment where copying
1302
- must work. `CopyButton` does not throw. It uses a different clipboard fallback.
1775
+ must work. `CopyButton` does not throw: it awaits the same write and, when the clipboard
1776
+ refuses it, shows "Copy failed" ([details](#a-test-no-longer-finds-copybutton-by-copied-or-its-name-changes)).
1777
+
1778
+ ### A test no longer finds `CopyButton` by "Copied", or its name changes
1779
+
1780
+ **When:** a test clicks a `CopyButton` and looks for a button named
1781
+ `Copied`, or reads the tooltip, or the copy "succeeds" in a page where the
1782
+ clipboard is not available.
1783
+ **Why:** the button's accessible name is now always its `label` (`Copy`). The
1784
+ outcome is a visually hidden `role="status"` (polite) region next to the
1785
+ button, so a screen reader announces it without a rename. "Copied" shows only
1786
+ after the clipboard write resolved; a rejected write (permission denied, an
1787
+ insecure origin, no Clipboard API) shows "Copy failed" (`failedLabel`,
1788
+ `material.copy.failed`).
1789
+ **Fix:** stub the clipboard and read the status next to the button. A bare
1790
+ `getByRole('status')` is ambiguous: every `CopyButton` renders one, and so do
1791
+ `Banner`, `DataTable` and the skeletons.
1792
+
1793
+ ```ts
1794
+ Object.defineProperty(navigator, 'clipboard', {
1795
+ configurable: true,
1796
+ value: { writeText: vi.fn().mockResolvedValue(undefined) }, // or mockRejectedValue(new Error('denied'))
1797
+ });
1798
+ const button = screen.getByRole('button', { name: 'Copy' });
1799
+ await user.click(button);
1800
+ // the parent holds the button and its status; wrap a CopyButton that has siblings
1801
+ expect(await within(button.parentElement!).findByRole('status')).toHaveTextContent('Copied');
1802
+ ```
1303
1803
 
1304
1804
  ### `Upload failed with status 403`
1305
1805
 
@@ -1342,6 +1842,30 @@ Apply it on the bucket, with your own origin.
1342
1842
  <FilterProvider schema={schema} presetConfig={{ enabled: true, maxPresets: 50 }}>
1343
1843
  ```
1344
1844
 
1845
+ ### `` Cannot update a component (`DataTable`) while rendering a different component ``
1846
+
1847
+ **When:** in the dev server's console, in an end-to-end run, now and then,
1848
+ mostly in Firefox under Playwright, after a `DataTable` got new `data` (a page,
1849
+ a search). The other component varies (`CheckboxProvider`, `Presence`, a
1850
+ `DataTableRow`, a column header), and a production build names them with
1851
+ minified names (a minified name stands for `DataTable`). The same run may log
1852
+ it for `RouterProvider` too.
1853
+
1854
+ **Why:** TanStack Table resets the expanded rows in a microtask after `data`
1855
+ changes. Before the fix, `DataTable` set its state for that reset even when no
1856
+ row was expanded; in a browser that runs pending microtasks while React
1857
+ renders, that update landed during another component's render and React
1858
+ warned. The `RouterProvider` one is React Router's route discovery resolving
1859
+ at the same moment: the same browser behaviour, not something the app or the
1860
+ table does.
1861
+
1862
+ **Fix:** upgrade to the `@nxgt/material` release that lists this fix in its
1863
+ changelog: `DataTable` no longer sets state when no row is expanded, so the
1864
+ reset cannot land as an update during another component's render. Nothing to
1865
+ change in the app when no row is expanded; with a row expanded, a new `data`
1866
+ still resets it, and the warning can still appear. If it still names
1867
+ `RouterProvider`, it is harmless and outside `DataTable`.
1868
+
1345
1869
  ### `Failed to execute 'exitFullscreen' on 'Document': Document not active`
1346
1870
 
1347
1871
  **When:** as an unhandled promise rejection in the console (or a failing test
@@ -1394,6 +1918,63 @@ on a desktop and on a phone alike: closing the picker with OK hands focus back
1394
1918
  to the trigger, and the next Tab or click elsewhere touches it. See the next
1395
1919
  entry.
1396
1920
 
1921
+ ### `setError(…, { shouldFocus: true })` or a failed submit does not focus the field
1922
+
1923
+ **When:** a form wired with `*FormField`s: `handleSubmit` fails validation, or
1924
+ you call `form.setError('email', { message }, { shouldFocus: true })`, and
1925
+ focus stays where it was. Before the release that lists this fix only: every
1926
+ `*FormField` (and the config-driven `FormField`), the plain text inputs
1927
+ included, ignored `shouldFocusError`, `setError(…, { shouldFocus: true })` and
1928
+ `setFocus(name)`.
1929
+ **Why:** React Hook Form focuses a field by calling `focus()` on the `ref`
1930
+ that `Controller` gives to `field.ref`. The wrappers did not hand it to any
1931
+ element, so React Hook Form had nothing to focus (and `setFocus('email')` did
1932
+ nothing either).
1933
+ **Fix:** upgrade to the release that lists this fix in its changelog: every `*FormField` (and `FormField`) forwards
1934
+ `field.ref`, to its input, or, for a field made of several controls, to a
1935
+ handle that focuses the first one a user can reach (the select's trigger, the
1936
+ first chip, the file picker's button, the first of the two date inputs). For
1937
+ a field of your own, give `field.ref` to the control:
1938
+
1939
+ ```tsx
1940
+ <Controller
1941
+ control={control}
1942
+ name="nickname"
1943
+ render={({ field }) => <input {...field} />}
1944
+ />
1945
+ ```
1946
+
1947
+ A form whose error is shown by a field that is not mounted (a closed tab, a
1948
+ collapsed section) cannot take focus: React Hook Form skips it silently, so
1949
+ open the section before calling `setError`.
1950
+
1951
+ `setFocus(name)` uses the same `ref`, so a sign-in step that calls
1952
+ `setFocus('password')` or `setFocus('code')` on mount puts focus in its
1953
+ `PasswordFormField` or `OtpFormField` (Storybook: `Guides/Forms/Focus on
1954
+ error`, `Set Focus Password` and `Set Focus Otp`).
1955
+
1956
+ ### A test that finds a chip by `aria-selected` or `getByRole('option')` no longer finds it
1957
+
1958
+ **When:** after upgrading past the release that lists this fix, a test (or
1959
+ an end-to-end locator) that picked a `SelectChipField` chip with
1960
+ `[aria-selected="true"]`, `getByRole('option', { name })` or
1961
+ `toHaveAttribute('aria-selected', 'true')` finds nothing, and the same for
1962
+ `SelectChipFormField` and the config-driven `FormField` (`chips-single`, `chips-multiple`).
1963
+ **Why:** the chips are toggle buttons: `aria-selected` is not allowed on a
1964
+ button, so a chosen chip is now `aria-pressed="true"`, in `single` mode too
1965
+ (pressing the chosen chip clears it). The chips sit in a `role="group"`
1966
+ named by the label and described by the help text. `SelectCardField` is
1967
+ unchanged.
1968
+ **Fix:** query the group, then the chip as a button:
1969
+
1970
+ ```ts
1971
+ import { screen, within } from '@testing-library/react';
1972
+
1973
+ const topics = screen.getByRole('group', { name: 'Topics' });
1974
+ const design = within(topics).getByRole('button', { name: 'Design' });
1975
+ expect(design).toHaveAttribute('aria-pressed', 'true');
1976
+ ```
1977
+
1397
1978
  ### `touchedFields` stays empty after leaving a field, or `mode: 'onBlur'` never validates
1398
1979
 
1399
1980
  **When:** a `*FormField` keeps `formState.touchedFields` (and
@@ -1543,16 +2124,22 @@ await page.getByRole('slider', { name: 'Price Minimum' }).press('ArrowRight');
1543
2124
 
1544
2125
  **When:** after upgrading to 2.2.0, `getByRole('textbox', { name: 'Email*' })`
1545
2126
  (or any role query whose name ends in `*`) finds nothing for a field whose
1546
- `Label` has `withAsterisk` (a `required` field). Queries on the label's text,
1547
- `getByLabelText` and Playwright's `getByLabel`, still see the `*`: match it
1548
- loosely in `getByLabelText` (`getByLabelText(/^Email/)`); Playwright's
1549
- `getByLabel('Email')` already matches a substring.
1550
- **Why:** screen readers used to read the asterisk ("Email star" or "Email*"),
1551
- so it is now `aria-hidden`. The field's own `required` / `aria-required` says
1552
- it is required, and every field of this library now sets it on the element a
1553
- screen reader lands on (the input, the picker's combobox, the slider thumbs, the rating's
2127
+ `Label` has `withAsterisk` (a `required` field). Since the release that drew the
2128
+ asterisk with CSS, `getByLabelText('Email*')` and Playwright's
2129
+ `getByLabel('Email *')` find nothing either; and the other way round,
2130
+ `getByLabel('Email', { exact: true })` and `getByLabelText('Email')` now match
2131
+ a required field, which a `*` in the label's text used to prevent.
2132
+ **Why:** screen readers read the asterisk ("Email star" or "Email*"), and
2133
+ Testing Library and Playwright compare the label's text, `aria-hidden` or not.
2134
+ The `*` is now drawn by a CSS pseudo-element with an empty `content`
2135
+ (`label.css`, imported by the stylesheet), so it is in no text and no name. The
2136
+ field's own `required` / `aria-required` says it is required, and every field
2137
+ of this library sets it on the element a screen reader lands on (the input, the
2138
+ picker's combobox, the select's trigger, the slider thumbs, the rating's
1554
2139
  radiogroup, the editor's textbox, the list's listbox, or, for a file picker,
1555
- a group described as "This field is required.").
2140
+ a group described as "This field is required."). A `SelectField`'s trigger is
2141
+ now named by its label (`aria-labelledby`), so `getByRole('combobox', { name:
2142
+ 'Framework' })` finds it.
1556
2143
  **Fix:** find the field by its label alone, and check that it is required
1557
2144
  separately:
1558
2145
 
@@ -1568,6 +2155,12 @@ await expect(page.getByRole('textbox', { name: 'Email' })).toHaveAttribute('requ
1568
2155
  await expect(page.getByRole('combobox', { name: 'Delivery date' })).toHaveAttribute('aria-required', 'true');
1569
2156
  ```
1570
2157
 
2158
+ Custom CSS that targeted the old `<span class="text-error">` should target
2159
+ `[data-slot="label-text"][data-required]::after` instead; the recipe is in
2160
+ [Label](components/primitives.md#label). The mark is drawn by the package stylesheet, so a
2161
+ snapshot of the DOM no longer contains it, and it stays visible in
2162
+ forced-colors mode.
2163
+
1571
2164
  ### An end-to-end test no longer finds `aria-expanded` on a `ResponsiveButton`
1572
2165
 
1573
2166
  **When:** after upgrading to 2.2.0, a spec that selects
@@ -1888,6 +2481,23 @@ await expect(page.getByRole('switch', { name: 'Notifications' })).toHaveAttribut
1888
2481
  await expect(page.getByRole('combobox', { name: 'Country' })).toHaveAttribute('aria-invalid', 'true');
1889
2482
  ```
1890
2483
 
2484
+ ### A test no longer finds `aria-invalid` on an `OtpField` slot
2485
+
2486
+ **When:** `[data-slot="input-otp-slot"][aria-invalid]` (or
2487
+ `getAllByRole(…)` filtered on `aria-invalid`) finds nothing although the
2488
+ `OtpField` has `error`.
2489
+ **Why:** ARIA does not allow `aria-invalid` on a plain `div`, and a slot is
2490
+ a presentational box: the one element a screen reader reads is the hidden
2491
+ input, which keeps `aria-invalid="true"`. A slot shows the error with a red
2492
+ border from `data-invalid`.
2493
+ **Fix:** assert it on the input, found by the field's label:
2494
+
2495
+ ```ts
2496
+ await expect(screen.getByLabelText('Enter OTP')).toHaveAttribute('aria-invalid', 'true');
2497
+ // A slot's red border, if a test must see it:
2498
+ await expect(container.querySelector('[data-slot="input-otp-slot"]')).toHaveAttribute('data-invalid');
2499
+ ```
2500
+
1891
2501
  ### A test no longer finds the breadcrumb's home button
1892
2502
 
1893
2503
  **When:** after upgrading, `getByRole('button', { name: 'Home' })` finds
@@ -1906,6 +2516,137 @@ await page.getByRole('navigation', { name: 'breadcrumb' })
1906
2516
  .click();
1907
2517
  ```
1908
2518
 
2519
+ ### A test no longer finds a sidebar entry by the `button` role
2520
+
2521
+ **When:** after upgrading, `getByRole('button', { name: 'Invoices' })` finds
2522
+ nothing among the entries of an `ActivityLayout`, `AppSidebar` or `AppHeader`'s
2523
+ menu sheet.
2524
+ **Why:** each entry used to be a `<button>` that navigated on click. It is now
2525
+ a real `<a href>`, so its role is `link`, and the current page's entry carries
2526
+ `aria-current="page"`. The icon inside is decorative (`aria-hidden`), so the
2527
+ link's name is its label alone, "Invoices", and an exact name matches.
2528
+ **Fix:** find it as a link:
2529
+
2530
+ ```ts
2531
+ const invoices = page.getByRole('link', { name: 'Invoices' });
2532
+ await invoices.click();
2533
+ await expect(invoices).toHaveAttribute('aria-current', 'page');
2534
+ ```
2535
+
2536
+ ### The app shell's page scrolls instead of its content, or a full-height screen collapses
2537
+
2538
+ **When:** after upgrading, the whole page scrolls under an `ActivityLayout`
2539
+ rather than the box inside it; a test or a script that scrolled the shell's
2540
+ inner box (`[data-slot=activity-layout] .overflow-auto`) finds nothing to
2541
+ scroll; or a screen sized `h-full` to fill the shell (a map, a board) is only
2542
+ as high as its content.
2543
+ **Why:** the shell was `100lvw × 100lvh` and scrolled its content inside
2544
+ itself: the page was a scrollbar's width wider than the window, and on a phone
2545
+ the bottom of the content sat under the browser's toolbar. It is now `100%`
2546
+ wide and at least `100dvh` high, and the document scrolls; the header and the
2547
+ desktop sidebar are sticky.
2548
+ **Fix:** scroll the window in a test (`window.scrollTo`, or let the browser
2549
+ scroll an element into view). For a screen that manages its own height, opt
2550
+ back into the in-shell scrolling with `scroll="container"`:
2551
+
2552
+ ```tsx
2553
+ <ActivityLayout items={items} scroll="container">
2554
+ ```
2555
+
2556
+ ### A `className` on `ActivityLayout` now styles the whole shell
2557
+
2558
+ **When:** after upgrading, the classes passed to `<ActivityLayout className="…">`
2559
+ (a padding, a background, a gap) land around the sidebar and the header too,
2560
+ not only around the content, or a selector on the inner box finds them
2561
+ missing.
2562
+ **Why:** `className` used to land on the inner layout box; it now reaches the
2563
+ outer element, `[data-slot=activity-layout]`, with the other props.
2564
+ **Fix:** keep on `ActivityLayout` only the classes meant for the whole shell,
2565
+ and move the rest to the screen: `ActivityContent`'s `className`, or an
2566
+ element of your own inside it:
2567
+
2568
+ ```tsx
2569
+ <ActivityLayout items={items} className="bg-muted">
2570
+ <ActivityContent title="Invoices" className="gap-6">…</ActivityContent>
2571
+ </ActivityLayout>
2572
+ ```
2573
+
2574
+ ### A test finds a new heading or a second `main`, or no longer finds a title in a `div`
2575
+
2576
+ **When:** after upgrading, `getAllByRole('heading')` returns more than it did,
2577
+ a selector such as `div[data-slot=card-title]` finds nothing, or an
2578
+ accessibility check reports more than one `main` landmark in an app that
2579
+ renders its own `<main>` around `ActivityLayout`.
2580
+ **Why:** `ActivityContent`'s title is now a heading, `h1` by default; a
2581
+ `CardTitle` is an `h3` (it was a `div`); and the shell's content region is the
2582
+ page's `<main>`. The phone menu sheet had no name; it is now named
2583
+ "Navigation" (`material.app-shell.navigation`):
2584
+ `getByRole('dialog', { name: 'Navigation' })`.
2585
+ **Fix:** find titles by role and level —
2586
+ `getByRole('heading', { level: 1, name: 'Invoices' })` — and pick another
2587
+ level with `titleAs` or `CardTitle`'s `as` (`'div'` for no heading). An app
2588
+ with its own `<main>` passes `contentAs="div"`.
2589
+
2590
+ ### `[data-test="typogaphy"]` finds nothing
2591
+
2592
+ **When:** after upgrading, a selector on `data-test="typogaphy"` finds no
2593
+ `Typography`.
2594
+ **Why:** the attribute was misspelled; it now reads `data-test="typography"`.
2595
+ **Fix:** select `[data-test="typography"]` — or better, the text or the role
2596
+ the user sees.
2597
+
2598
+ ### A test no longer finds a tooltip on an entry of an expanded sidebar
2599
+
2600
+ **When:** after upgrading, a test hovers or focuses a `SidebarMenuItem` of an
2601
+ expanded `Sidebar` (or an entry of the phone menu sheet) and waits for
2602
+ `getByRole('tooltip', { name: 'Inbox' })`, which never appears.
2603
+ **Why:** an entry's label is its tooltip only while the sidebar is collapsed;
2604
+ expanded, the label is already on screen, and a tooltip repeating it opened
2605
+ over the first entry as focus moved into the menu sheet. A `tooltip` you pass
2606
+ is still shown, collapsed or expanded.
2607
+ **Fix:** find the entry by the label it shows —
2608
+ `getByRole('link', { name: 'Inbox' })` — or collapse the sidebar first when
2609
+ the test is about the tooltip. Pass `tooltip` when an expanded entry must
2610
+ have one:
2611
+
2612
+ ```tsx
2613
+ <SidebarMenuItem icon={<Inbox />} tooltip="3 unread">Inbox</SidebarMenuItem>
2614
+ ```
2615
+
2616
+ ### A test no longer finds a calendar day by its number, or by "Today" or "selected"
2617
+
2618
+ **When:** after upgrading, `getByRole('gridcell', { name: '1' })` or
2619
+ `getByRole('button', { name: 'Thursday, October 1st, 2026' })` finds nothing in
2620
+ a `Calendar`, `DateField`, `DateRangeField` or `EventCalendar`'s date picker; so
2621
+ do names with "Today, " or ", selected" in them; or
2622
+ `getByRole('gridcell', { name: '1', exact: true })` used to match both the 1st
2623
+ and the next month's 1st, shown as an outside day.
2624
+ **Why:** a day is now named by its full localized date and nothing else:
2625
+ "Thursday, October 1, 2026" (in French "jeudi 1 octobre 2026"), on the button
2626
+ and on the cell (`gridcell`) around it. "Today" and "selected" are no longer in
2627
+ the name: the chosen day carries `aria-selected="true"` on its cell and a
2628
+ "Selected" description on its button, today `aria-current="date"` on both. The
2629
+ days of the neighbouring months are named by their own dates ("Wednesday,
2630
+ September 30, 2026"), so a bare number matches no day at all. The language is
2631
+ the calendar's `locale`, else the active `I18nProvider` language, else English:
2632
+ under a French provider the names, the heading and the weekday row are now
2633
+ French, so pass `locale={enUS}` (from `react-day-picker/locale`) to keep English.
2634
+ **Fix:** pick the day by its date, exactly, and assert the state; compute
2635
+ today's name instead of writing it:
2636
+
2637
+ ```ts
2638
+ const name = (date: Date) =>
2639
+ new Intl.DateTimeFormat('en', { dateStyle: 'full' }).format(date);
2640
+
2641
+ const day = page.getByRole('gridcell', { name: 'Thursday, October 1, 2026', exact: true });
2642
+ await day.getByRole('button').click();
2643
+ await expect(day).toHaveAttribute('aria-selected', 'true');
2644
+ await expect(page.getByRole('button', { name: 'Thursday, October 1, 2026' })).toHaveAccessibleDescription('Selected');
2645
+ await expect(page.getByRole('gridcell', { name: name(new Date()) })).toHaveAttribute('aria-current', 'date');
2646
+ ```
2647
+
2648
+ `getByRole('button', { name: 'Thursday, October 1, 2026', exact: true })` finds the same day.
2649
+
1909
2650
  ### `#<name>` no longer finds a `SwitchFormField` or `CheckboxFormField`
1910
2651
 
1911
2652
  **When:** after upgrading, a selector such as `#notifications`, or a
@@ -1950,6 +2691,68 @@ await page.locator('#married').getByRole('radio', { name: 'Yes' }).check();
1950
2691
  await page.locator('#married-0').check(); // the first option
1951
2692
  ```
1952
2693
 
2694
+ ### `#<name>` no longer finds a text, OTP, number, date or picker form field, or a second form's field has no name
2695
+
2696
+ **When:** two forms on one page have a field with the same `name` (a sign-in
2697
+ and a sign-up form both with `email`, two steps of a code check both with
2698
+ `code`), and the second field has no accessible name: its label points at the
2699
+ first form's input. Or, after upgrading, a selector such as `#email`, or a
2700
+ `<label htmlFor="email">` of your own, no longer reaches the input of
2701
+ `<TextFormField name="email">`.
2702
+ **Why:** the text-like wrappers (`TextFormField`, `TextareaFormField`,
2703
+ `EmailFormField`, `PasswordFormField`, `UrlFormField`, `NumberFormField`,
2704
+ `CurrencyFormField`, `PercentFormField`, `InputGroupFormField`,
2705
+ `PhoneFormField`, `OtpFormField`, `ColorFormField`, `TimezoneFormField`,
2706
+ `RatingFormField`, the date and time wrappers, `ComboboxFormField`,
2707
+ `AutocompleteFormField`, `TreeSelectFormField`, `FilesFormField`,
2708
+ `LocationFormField`) gave the control the field's `name` as its `id`, so two
2709
+ forms sharing a name had two elements with one `id`. Without an `id` of yours,
2710
+ the control now gets a generated one (`useId`), as the bare fields always did
2711
+ and as `@nxgt/material-vue` does.
2712
+ **Fix:** select by role and name, by `name`, or pass the `id` you rely on:
2713
+
2714
+ ```tsx
2715
+ await page.getByRole('textbox', { name: 'Email' }).fill('ada@example.com');
2716
+ await page.locator('[name="email"]').fill('ada@example.com');
2717
+ // or keep a fixed id
2718
+ <TextFormField control={control} name="email" id="sign-in-email" label="Email" />
2719
+ ```
2720
+
2721
+ ### A double click or Enter submits a form twice, or a test finds `aria-busy` in an idle `Button`
2722
+
2723
+ **When:** a sign-in or save form is submitted twice by a quick double click,
2724
+ or by Enter pressed twice in a field, although its submit button has
2725
+ `loading`; or `<Button asChild loading><a onClick={save}>` still calls
2726
+ `save`. Or, after upgrading, a markup assertion such as
2727
+ `expect(html).not.toContain('aria-busy')` fails on a `Button` that is not
2728
+ loading.
2729
+ **Why:** `loading` blocked clicks only once the busy state had rendered, a
2730
+ `loading` that turns true after an `await` (a mutation's `isPending` behind an
2731
+ async resolver) left a window for the second click, and an `asChild` child's
2732
+ own `onClick` ran before the guard. A loading `Button` now sets
2733
+ `aria-busy="true"` and `aria-disabled="true"` (it set neither before) and
2734
+ cancels every click in the capture phase — the click Enter in a field sends to
2735
+ the form's submit button included — so neither your handler, the child's nor
2736
+ an ancestor's runs. It still sets no native `disabled` and stays focusable.
2737
+ Busy buttons show a progress cursor: the class string of every `Button` now
2738
+ holds `aria-busy:cursor-progress`, which a plain `toContain('aria-busy')`
2739
+ matches.
2740
+ **Fix:** pass React Hook Form's `formState.isSubmitting`, which is true as soon
2741
+ as `handleSubmit` starts; for a `loading` that turns true later, add
2742
+ `lockOnClick`. In a test, check the attribute, not the string:
2743
+
2744
+ ```tsx
2745
+ <Button type="submit" loading={formState.isSubmitting}>Sign in</Button>
2746
+ <Button type="submit" loading={mutation.isPending} lockOnClick>Sign in</Button>
2747
+
2748
+ expect(screen.getByRole('button', { name: 'Sign in' })).toHaveAttribute('aria-busy', 'true');
2749
+ expect(renderToStaticMarkup(<Button>Save</Button>)).not.toMatch(/\saria-busy=/);
2750
+ ```
2751
+
2752
+ A `form.requestSubmit()` of your own fires no click, so the guard does not
2753
+ see it: check `formState.isSubmitting` before calling it (see
2754
+ [Forms](./guides/forms.md)).
2755
+
1953
2756
  ### An empty `UploadField` or `TimeField` is no longer tinted
1954
2757
 
1955
2758
  **When:** after upgrading, an `UploadField` showing its `placeholder`, or a
@@ -2023,6 +2826,21 @@ render `data-variant="error"`, and both use the `error` colour.
2023
2826
  [data-slot='menubar-item'][data-variant='error'] { font-weight: 600; }
2024
2827
  ```
2025
2828
 
2829
+ ### A menu no longer blocks the page, or a `ResponsiveButton` has no `useIsMobile` behaviour
2830
+
2831
+ **When:** after upgrading, clicking outside an open `DropdownMenu` (or
2832
+ `LanguageSwitcher`) reaches the element under the pointer and the page can
2833
+ still scroll; or `ResponsiveButton` shows its label in a test whose
2834
+ `matchMedia` says "mobile".
2835
+ **Why:** `DropdownMenu` is non-modal by default now: Radix's modal menu marked
2836
+ the rest of the page `aria-hidden` while its buttons and links stayed
2837
+ focusable (axe `aria-hidden-focus`). `ResponsiveButton` and
2838
+ `ResponsiveLinkButton` collapse with a CSS `max-md` media query instead of a
2839
+ JS effect, so the label is in the DOM at every width and jsdom (which applies
2840
+ no CSS) always shows it.
2841
+ **Fix:** pass `modal` to `DropdownMenu` to restore the old behaviour; force a
2842
+ collapsed button in a test with `expanded={false}`.
2843
+
2026
2844
  ### A `Stepper` step selected by `#step-N` stops matching
2027
2845
 
2028
2846
  **When:** after upgrading to 2.5.0, a test or a stylesheet that targets a
@@ -2075,7 +2893,9 @@ await dialog.getByRole('button', { name: 'Save' }).click();
2075
2893
 
2076
2894
  To put focus on something else when an overlay opens, prevent the default in
2077
2895
  `onOpenAutoFocus` and focus it yourself; to keep focus where it was (a
2078
- non-modal panel the user keeps typing behind), only prevent the default:
2896
+ non-modal panel the user keeps typing behind), only prevent the default — on
2897
+ a modal one focus then goes to its content, as the page behind is inert
2898
+ ([details](#focus-moves-into-a-dialog-although-onopenautofocus-prevented-it)):
2079
2899
 
2080
2900
  ```tsx
2081
2901
  const saveButtonRef = useRef<HTMLButtonElement>(null);
@@ -2094,6 +2914,34 @@ const saveButtonRef = useRef<HTMLButtonElement>(null);
2094
2914
  A `Drawer` also takes Vaul's `autoFocus={false}`, which does the same as
2095
2915
  preventing the default.
2096
2916
 
2917
+ ### Focus moves into a dialog although `onOpenAutoFocus` prevented it
2918
+
2919
+ **When:** a modal `Dialog`, `Sheet`, `Drawer` or `AlertDialog` whose
2920
+ `onOpenAutoFocus` calls `event.preventDefault()` and focuses nothing: focus
2921
+ lands on the layer's content, not on the element that had it before it
2922
+ opened.
2923
+ **Why:** the page behind a modal layer is `inert`, and an inert element
2924
+ cannot keep focus: the browser would drop it on `<body>`, where a keyboard
2925
+ or screen-reader user is nowhere. The layer takes it instead (its content
2926
+ has `tabindex="-1"`); closing still hands focus back to the element that
2927
+ opened it.
2928
+ **Fix:** focus what you want inside the layer in the handler; to keep
2929
+ focus on the page behind, make the layer non-modal (`modal={false}` on
2930
+ `Dialog`, `Sheet` or `Drawer`):
2931
+
2932
+ ```tsx
2933
+ const nameRef = useRef<HTMLInputElement>(null);
2934
+
2935
+ <DialogContent
2936
+ onOpenAutoFocus={(event) => {
2937
+ event.preventDefault();
2938
+ nameRef.current?.focus();
2939
+ }}
2940
+ >
2941
+ <Input ref={nameRef} aria-label="Name" />
2942
+ </DialogContent>
2943
+ ```
2944
+
2097
2945
  ### A `TimePicker` test expects AM / PM to add 12 hours, or a click on the pressed half to switch to PM
2098
2946
 
2099
2947
  **When:** after upgrading to 2.6.0, a test (or code of yours) around a
@@ -2199,6 +3047,49 @@ Anything else that must not make the row follow its link on a click (a custom wi
2199
3047
  />
2200
3048
  ```
2201
3049
 
3050
+ ### A `DataTable` no longer scrolls inside a 400px box
3051
+
3052
+ **When:** after upgrading, a long `DataTable` is as tall as its rows and the page scrolls, where its rows used to scroll inside a box about 400px tall.
3053
+ **Why:** the table capped its own height (`max-h-[400px]` on `[data-slot="table-wrapper"]`, and viewport-based caps on it and on `[data-slot="data-table"]` in the stylesheet). On a phone that made a scroll inside the page's scroll, so the cap is now opt-in.
3054
+ **Fix:** pass `maxHeight` (a number of pixels, or any CSS length) where the table should scroll inside a box:
3055
+
3056
+ ```tsx
3057
+ <DataTable data={rows} columns={columns} maxHeight={400} />
3058
+ ```
3059
+
3060
+ `maxHeight` is the supported way: it also keeps the header row in view while the rows scroll. A `max-height` rule of your own on `[data-slot="table-wrapper"]` still works, and the box still becomes the named, focusable scroll region once it overflows.
3061
+
3062
+ ### A `DataTable` shows its header row on a phone
3063
+
3064
+ **When:** after upgrading, a `DataTable` under 768px wide shows its header row, which it used to hide.
3065
+ **Why:** without the header a phone lost the column names, sorting and "Select all", so the header now shows at every width. The table scrolls sideways, in its own region, when the columns do not fit.
3066
+ **Fix:** nothing, usually. To hide it again, pass `showHeader` — `false` everywhere, or your own breakpoint:
3067
+
3068
+ ```tsx
3069
+ <DataTable data={rows} columns={columns} showHeader={false} />
3070
+ <DataTable data={rows} columns={columns} showHeader={!isPhone} />
3071
+ ```
3072
+
3073
+ ### A test's `getByRole('region')` finds more than one region
3074
+
3075
+ **When:** a test or an axe check runs on a page with a `DataTable` wider than its box, and a query for the `region` role now also finds the table.
3076
+ **Why:** while its content overflows, the table's scroll box (`[data-slot="table-wrapper"]`) is a keyboard-focusable `region` named "Scrollable table" (`material.table.labels.scroll-region`), so a keyboard user can scroll it (axe `scrollable-region-focusable`). It is not a region while it fits, nor on the server.
3077
+ **Fix:** query your region by name, and give the table a name of its own where a page holds several:
3078
+
3079
+ ```tsx
3080
+ <DataTable data={rows} columns={columns} scrollLabel="Invoices" />
3081
+ ```
3082
+
3083
+ ```ts
3084
+ page.getByRole('region', { name: 'Invoices' });
3085
+ ```
3086
+
3087
+ ### A `DataTable` toolbar is gone
3088
+
3089
+ **When:** a `DataTable` is given `actions` that render nothing (`() => null`, `false`), and a test looked for the toolbar's `fieldset` (`[data-slot="header"]`).
3090
+ **Why:** the toolbar is rendered only when it has content (yours, or `showViewOptions`): an empty `<fieldset>` is a nameless group to a screen reader.
3091
+ **Fix:** look for what the toolbar holds (a filter by its label, the view options by "View"), not for the `fieldset` itself. A component of yours that renders nothing still counts as content: render it conditionally instead.
3092
+
2202
3093
  ---
2203
3094
 
2204
3095
  ---