|
7 | 7 | "Button", |
8 | 8 | "ButtonGroup", |
9 | 9 | "Checkbox", |
| 10 | + "Chip", |
10 | 11 | { "component": "Fab", "note": "the ring needs `disableFocusRipple`" }, |
11 | 12 | { "component": "IconButton", "note": "the ring needs `disableFocusRipple` too" }, |
12 | 13 | "Radio", |
|
21 | 22 | "affected": [ |
22 | 23 | "Avatar", |
23 | 24 | { "component": "Button", "note": "`info`, `warning`; `error` in dark mode" }, |
| 25 | + { |
| 26 | + "component": "Chip", |
| 27 | + "note": "`info`, `warning`, focused or hovered `outlined`" |
| 28 | + }, |
24 | 29 | { "component": "CircularProgress", "note": "`warning` with `enableTrackSlot`" }, |
25 | 30 | { |
26 | 31 | "component": "Fab", |
|
51 | 56 | "affected": [{ "component": "ToggleButton", "note": "`primary`, `error`, `info`, `success`" }], |
52 | 57 | "workaround": "Add a non-color cue to the selected state, such as an icon" |
53 | 58 | }, |
| 59 | + { |
| 60 | + "gap": "A Chip label does not wrap, so a long label ends with an ellipsis and hides text", |
| 61 | + "criteria": ["1.4.10", "1.4.12"], |
| 62 | + "affected": ["Chip"], |
| 63 | + "workaround": "Let the label wrap with `height: 'auto'` and `whiteSpace: 'normal'`, as in the multiline demo" |
| 64 | + }, |
| 65 | + { |
| 66 | + "gap": "A deletable Chip does not expose its delete action, and a disabled delete-only Chip stays focusable and does not expose its disabled state", |
| 67 | + "criteria": ["1.1.1", "4.1.2"], |
| 68 | + "affected": [{ "component": "Chip", "note": "`onDelete`; delete-only ignores Enter, Space" }], |
| 69 | + "workaround": "Describe the delete key with `aria-describedby`, and set `skipFocusWhenDisabled` on disabled chips" |
| 70 | + }, |
| 71 | + { |
| 72 | + "gap": "Deleting a Chip with the keyboard moves focus to the page body", |
| 73 | + "criteria": ["2.4.3"], |
| 74 | + "affected": [{ "component": "Chip", "note": "`onDelete`" }], |
| 75 | + "workaround": "Move focus to the next chip, or to the input, in the `onDelete` handler" |
| 76 | + }, |
| 77 | + { |
| 78 | + "gap": "The Chip delete icon is smaller than 24 by 24 CSS px, and its contrast is below 3:1", |
| 79 | + "criteria": ["1.4.11", "2.5.8"], |
| 80 | + "affected": [{ "component": "Chip", "note": "16 px `small`, 22 px `medium`" }], |
| 81 | + "workaround": "Enlarge the icon, and give it a darker color, with `sx` on `.MuiChip-deleteIcon`" |
| 82 | + }, |
54 | 83 | { |
55 | 84 | "gap": "The extended Fab has a fixed height, so a label that wraps can spill out of it", |
56 | 85 | "criteria": ["1.4.10", "1.4.12"], |
|
0 commit comments