Elizabeth Mitchell
c390291687
chore: format files with prettier
...
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elizabeth Mitchell
ed539c6853
fix(iconbutton): allow prevent default click for toggles
...
Fixes #4857
PiperOrigin-RevId: 563220193
2023-09-06 14:41:50 -07:00
Elizabeth Mitchell
a9091fe036
fix(iconbutton): update demos to fix a11y
...
PiperOrigin-RevId: 561168744
2023-08-29 16:22:55 -07:00
Andrew Jakubowicz
daea92e3fe
test(iconbutton): add token tests
...
PiperOrigin-RevId: 560106639
2023-08-25 09:02:32 -07:00
Andrew Jakubowicz
2bbab09a50
fix(iconbutton): rename selectedAriaLabel to ariaLabelSelected along with attribute
...
PiperOrigin-RevId: 557887242
2023-08-17 11:37:03 -07:00
Elizabeth Mitchell
a117b06b7b
fix(iconbutton)!: rename <md-standard-icon-button> to <md-icon-button>
...
PiperOrigin-RevId: 552545415
2023-07-31 11:37:56 -07:00
Elizabeth Mitchell
ec47f9bcc4
refactor(iconbutton)!: remove <md-icon>
...
BREAKING CHANGE: font icons require using <md-icon> directly
PiperOrigin-RevId: 530673789
2023-05-09 11:56:13 -07:00
Daniel Freedman
5d3af375f0
feat(iconbutton)!: rename selected aria label property, add documentation
...
- `ariaLabelSelected` is now `selectedAriaLabel`, with `selected-aria-label` attribute.
- Add documentation.
PiperOrigin-RevId: 522077110
2023-04-05 09:44:06 -07:00
Daniel Freedman
0aa39e8153
feat(iconbutton)!: combine button, link, and toggle variants into single components
...
PiperOrigin-RevId: 521789432
2023-04-04 09:48:15 -07:00
Daniel Freedman
c72e7fd6f7
refactor(iconbutton)!: Make a few API improvements
...
- `selectedIcon` is now optional, will fallback to default slot icon
- `icon-button-toggle-change` removed for `change` and `input` events
PiperOrigin-RevId: 502997869
2023-01-18 15:38:40 -08:00
Daniel Freedman
31391eb610
refactor(iconbutton)!: normalize toggle variant API with regular icon button
...
- Rename `ariaLabelOn` to `ariaLabelSelected`
- Merge `arialLabelOff` into `ariaLabel`
- `onIcon` slot is now `selectedIcon`
- `offIcon` slot is now a default slot
- IconButtonToggle now extends IconButton
PiperOrigin-RevId: 501414360
2023-01-11 16:55:40 -08:00
Daniel Freedman
36f1a1a0b3
refactor(iconbutton)!: remove icon properties, use slots instead
...
PiperOrigin-RevId: 501403118
2023-01-11 16:04:39 -08:00
Material Web Team
07edf86432
Changes icon-button-toggle-*'s isOn
property to be named selected
.
...
This matches the name used for Switch and other "selectable" elements that do not have platform analogs suggesting other names (i.e. Checkbox and Radio have a `checked` property).
PiperOrigin-RevId: 493098361
2022-12-05 13:34:58 -08:00
Elizabeth Mitchell
73ca8ae0eb
chore: use relative paths
...
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00
Daniel Freedman
5dd43faffb
feat(icon-button): Implement isRTL helper library, and refactor icon-button to use it.
...
PiperOrigin-RevId: 471352106
2022-08-31 14:13:05 -07:00
Alexander Marks
30c95aeee1
chore: add ".js" extensions to import statements.
...
In particular, this allows external build tools like Rollup and @web/dev-server to understand imports of Lit, which is configured to require the ".js" extension via its export conditions (so that Lit import maps can remain minimal).
PiperOrigin-RevId: 469772992
2022-08-24 11:01:21 -07:00
Material Web Team
0111127e98
chore(iconbutton): Move M3 icon_button directory. Also update icon_button/
to iconbutton/
to align with 1P naming convention.
...
PiperOrigin-RevId: 460211503
2022-07-11 07:49:20 -07:00