23 Commits

Author SHA1 Message Date
Elizabeth Mitchell
e7bc633e18 chore(behaviors): add ElementInternals mixin
PiperOrigin-RevId: 576937116
2023-10-26 11:31:33 -07:00
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elizabeth Mitchell
e8b5b29d1e feat(iconbutton): update tokens to v0.192
BREAKING CHANGE: Replace `container-size` tokens with `container-width` and `container-height`.

PiperOrigin-RevId: 566801178
2023-09-19 17:52:12 -07:00
Andrew Jakubowicz
1163315948 fix(iconbutton): fix HCM disabled opacity and outlined
PiperOrigin-RevId: 565089379
2023-09-13 10:22:44 -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
9647f5e514 fix(iconbutton): rename selectedIcon slot to selected
BREAKING CHANGE: change `slot="selectedIcon"` to `slot="selected"` for toggle icon buttons.

PiperOrigin-RevId: 561740365
2023-08-31 13:14:41 -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
dffff2d1a3 fix(iconbutton)!: change visibility of willUpdate to protected
PiperOrigin-RevId: 559456407
2023-08-23 09:45:15 -07:00
Elizabeth Mitchell
f23fac1465 fix(button): add value to form when submitting
Fixes #4526

PiperOrigin-RevId: 558261952
2023-08-18 15:24:42 -07:00
Elizabeth Mitchell
3e13634d64 chore: make formAssociated readonly
PiperOrigin-RevId: 558255234
2023-08-18 14:57:38 -07:00
Elizabeth Mitchell
bc19c8d12f chore(iconbutton): don't reflect aria-label-selected
PiperOrigin-RevId: 557937222
2023-08-17 14:29:39 -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
Andrew Jakubowicz
c874cd55c7 fix(iconbutton): make target type stricter
PiperOrigin-RevId: 557643977
2023-08-16 16:57:06 -07:00
Elizabeth Mitchell
0862c58d24 feat(iconbutton): add touch target configs
PiperOrigin-RevId: 556114164
2023-08-11 15:32:56 -07:00
Elizabeth Mitchell
c0da72b6dc feat(iconbutton): add form submission
This is needed for `<md-dialog>` for close icon buttons.

I split out button's logic into a static helper method. I also added a symbol to share ElementInternals.

PiperOrigin-RevId: 554943716
2023-08-08 14:33:01 -07:00
Elizabeth Mitchell
0510496e60 chore: avoid this in static context
PiperOrigin-RevId: 554933524
2023-08-08 14:00:25 -07:00
Elliott Marquez
ff60a88843 refactor(icon)!: remove css custom props from icon and apply values directly on host
BREAKING CHANGE: Remove css custom properties from icon and prefer applying normal css properties on host except for font-family.

PiperOrigin-RevId: 553577562
2023-08-03 13:43:59 -07:00
Elizabeth Mitchell
0a63c267e9 fix(iconbutton)!: remove unselected token prefix
BREAKING CHANGE: Remove "unselected" from `--md-*-icon-button-*` custom properties.

PiperOrigin-RevId: 552836196
2023-08-01 10:01:57 -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
vdegenne
db2010d2c1 fix(icon-button): delegates focus 2023-07-27 08:40:24 +02: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
38b1b69a9c fix(iconbutton)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/iconbutton/lib` to `@material/web/iconbutton/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550579461
2023-07-24 09:10:22 -07:00