Commit Graph

10 Commits

Author SHA1 Message Date
Elizabeth Mitchell
79f7dd2470 chore(chips): move trailing icon aria-hidden
PiperOrigin-RevId: 590311910
2023-12-12 13:15:54 -08:00
vdegenne
49a6be141b feat(chip): trailing remove icon can now be customized 2023-12-12 09:45:52 +01:00
vdegenne
76883cd420 feat(chip): trailing remove icon can now be customized 2023-12-09 11:39:31 +01:00
vdegenne
b30d09e75b add hasSlottedTrailingIcon 2023-12-06 18:27:54 +01:00
vdegenne
9ff29ac8fa chore(md-chip): filter chip trailing icon can now be customized 2023-12-06 17:12:05 +01:00
vdegenne
a4bfc96a0b chore(md-chip): filter chip trailing icon can now be customized 2023-12-06 16:57:51 +01:00
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elizabeth Mitchell
16bfac1343 feat(chips): swap to toolbar a11y pattern
BREAKING CHANGE: chips now follow the [aria toolbar pattern](https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/examples/toolbar/). Chip sets are toolbars and chips are buttons or links. Filter chips are toggle buttons.
What to change:
- Remove `type` attribute from `<md-chip-set>` (you can mix and match chip types!)
- Remove `single-select` from `<md-chip-set>`. Use JS to control filter chips if single selection is required. Radio filter chips will come in a future update.
- Disabled chips CAN be focused with the keyboard if `always-focusable` is set.
- Filter chips no longer dispatch a `"selected"` event. Listen to `"click"` and use `event.target.selected` instead.
- ArrowUp and ArrowDown no longer navigate between chips. These are reserved for chip actions, like dropdown menu chips.

PiperOrigin-RevId: 566352830
2023-09-18 10:57:56 -07:00
Elizabeth Mitchell
d49f9b89e4 fix(focus)!: rename import to md-focus-ring.ts
BREAKING CHANGE: Change `@material/web/focus/focus-ring.js` to `@material/web/focus/md-focus-ring.js`.

PiperOrigin-RevId: 550608428
2023-07-24 10:43:31 -07:00
Andrew Jakubowicz
a8880f791b fix(chips)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/chips/lib` to `@material/web/chips/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550044106
2023-07-21 14:02:06 -07:00