Skip to content

Commit

Permalink
[fields] Enable the new field DOM structure by default (#14651)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle authored Oct 22, 2024
1 parent 092057d commit 509b12d
Show file tree
Hide file tree
Showing 143 changed files with 746 additions and 1,848 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2902,7 +2902,8 @@ Same changes as in `@mui/[email protected]`.
```
- The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
Learn more about this new accessible DOM structure in the [v8 migration guide](https://next.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
Expand Down
1 change: 1 addition & 0 deletions docs/.link-check-errors.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Broken links found by `docs:link-check` that exist:

- https://mui.com/x/react-date-pickers/fields/#accessible-dom-structure
90 changes: 0 additions & 90 deletions docs/data/date-pickers/custom-field/BrowserV6Field.js

This file was deleted.

135 changes: 0 additions & 135 deletions docs/data/date-pickers/custom-field/BrowserV6Field.tsx

This file was deleted.

This file was deleted.

140 changes: 0 additions & 140 deletions docs/data/date-pickers/custom-field/BrowserV6MultiInputRangeField.js

This file was deleted.

Loading

0 comments on commit 509b12d

Please sign in to comment.