Repository navigation
fix(core): a disclosure summary, a menu checkbox or radio, and editable text are nested controls wherever Core's shared nested-control rule applies #14308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
d97d8f1
f285feb
922edfd
ce22759
719d395
08034cb
5fe37ea
494edef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [fix] A disclosure `<summary>`, an element with `role="menuitemcheckbox"` or `role="menuitemradio"`, and editable text (`contenteditable`) now count as nested controls everywhere Core tells a nested control from its container. A click on one belongs to that control, and a press on one paints only that control: | ||
|
|
||
| - `ClickableCard`, `SelectableCard`, `Item` and `TreeList` rows, and `SideNavItem` rows with `actions` or an expand toggle: a click on one inside the row or card no longer runs the row's or card's action, and a mouse, pen or finger press on one no longer darkens the whole row or card. A row whose root is a link still runs and paints. | ||
|
astracat-bot[bot] marked this conversation as resolved.
Resolved
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| - A clickable `Token`: a click on one of these, or on a form control or its label, in `endContent` no longer runs `onClick`, so the click now matches the press, which already left the token unpainted for a form control. | ||
| - A `Token` that is both a link and removable: a click on one in `endContent` no longer follows the link or runs `onClick`. | ||
| - `TextInput`, `TextArea`, `NumberInput`, `DateTimeInput` and `TimeInput`: a click on one in the field's icon or end slot no longer moves focus to the input. | ||
|
astracat-bot[bot] marked this conversation as resolved.
Resolved
|
||
| - `FieldLabel` with a `ReactNode` description: a click on one in the description no longer reaches the field's control. | ||
| - `Overlay` on a touch screen: a tap on one in the media no longer toggles the overlay. | ||
| - `Toast`: a swipe that starts on one no longer moves the toast, and F6 moves focus to one when it is the first control in the newest toast. | ||
| - `SideNavHeading`: hovering or clicking one in the heading's `icon` no longer opens the heading menu. | ||
| - The menu bottom sheet: a press on one in a row's content stays with that control. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Tokenizer's sheet field changes too and has no line here: a click on one of these kinds inside a custom token no longer opens the sheet ( |
||
| - `Table` row expansion and tree rows: a click on one inside a row no longer expands or collapses the row. A `Table` inside an editable region now expands and toggles its rows on click, since that region is around the table, not a control in the row. | ||
| - A sortable `Table` header that holds one now gets the development warning that the header holds its own control. | ||
| - The exported `INTERACTIVE_SELECTORS`, `hasInteractiveAncestor`, `useClickableContainer` and `useInputContainer` include them, so a container built on them changes the same way. | ||
|
|
||
| @cixzhang | ||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.