Commit e891c0d
authored
fix(a11y): a disabled control answers the pointer with not-allowed (#5323)
The cursor is the only affordance a pointer user gets before they commit
to a click. A disabled control answering with `pointer` promises a click
it will not honour; one answering with `default` says nothing at all.
Every `cursor` in core and lab now carries
`':is(:disabled,[aria-disabled="true"])': 'not-allowed'`, the reset gives
the same cursor to any disabled element that declares none, and a lint
rule plus a Chromium sweep keep it that way.1 parent 83661ae commit e891c0d
89 files changed
Lines changed: 1554 additions & 133 deletions
File tree
- .changeset
- .github/scripts
- internal/eslint-plugin-astryx
- packages
- core/src
- AvatarGroup
- Avatar
- BottomSheet
- Breadcrumbs
- Button
- Calendar
- Chat
- CheckboxInput
- Citation
- ClickableCard
- CodeBlock
- Collapsible
- CommandPalette
- ComplexSelector
- DateInput
- DateRangeInput
- DateTimeInput
- DropdownMenu
- Field
- FileInput
- Item
- Lightbox
- Link
- MetadataList
- MultiSelector
- NumberInput
- Outline
- Pagination
- RadioList
- Resizable
- SegmentedControl
- SelectableCard
- Selector
- Slider
- Switch
- TabList
- Table/plugins
- columnResize
- filtering
- groupedRows
- rowExpansion
- sortable
- tree
- Thumbnail
- Tokenizer
- Token
- TreeList
- Typeahead
- hooks
- lab/src
- ChatReasoning
- Chat
- InfoTip
- LogStream
- Stepper
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments