Commit Graph

29 Commits

Author SHA1 Message Date
Elizabeth Mitchell
7f3d9d1bdf chore: add role property to aria helpers
PiperOrigin-RevId: 632857688
2024-05-11 17:35:13 -07:00
Elizabeth Mitchell
d06a3e781e chore: add event hooks for default prevention behavior
PiperOrigin-RevId: 592375327
2023-12-19 16:29:52 -08:00
Elizabeth Mitchell
eca1357f1a fix: rename and move internal/controller/events
Split `internal/controller/events` into `internal/events/redispatch-event` and `internal/events/form-label-activation`

PiperOrigin-RevId: 592350371
2023-12-19 14:49:35 -08:00
Elizabeth Mitchell
2bb480fb82 chore: move events out of controller folder
PiperOrigin-RevId: 592021123
2023-12-18 15:07:51 -08:00
Elizabeth Mitchell
9e3f0801aa fix(button): sometimes submits form even when click listener prevents default
Fixes #5032

PiperOrigin-RevId: 588925434
2023-12-07 15:18:05 -08:00
Elizabeth Mitchell
c319236cd1 refactor: remove Firefox ARIAMixin polyfills (v119+)
This is now fixed in the latest two versions of Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1785412

PiperOrigin-RevId: 586442947
2023-11-29 13:48:38 -08:00
Elizabeth Mitchell
1f55d4111f chore(behaviors): update form controls to use shared mixins
PiperOrigin-RevId: 578297611
2023-10-31 14:08:39 -07:00
Elizabeth Mitchell
f5daadc307 chore: update components to use mixinFocusable
PiperOrigin-RevId: 576982507
2023-10-26 14:09:08 -07:00
Elizabeth Mitchell
f94de5d302 chore(aria): add separate setup function for polyfill and focusability
PiperOrigin-RevId: 576973090
2023-10-26 13:37:49 -07:00
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
Elliott Marquez
8aa4faf14a fix: aria polyfill overrides user values and user values override internals values
PiperOrigin-RevId: 565570035
2023-09-14 22:11:40 -07:00
Elizabeth Mitchell
08acc413f6 chore: add polyfill for Firefox ElementInternals aria
PiperOrigin-RevId: 563194223
2023-09-06 13:10:49 -07:00
Elizabeth Mitchell
1e7aff50cf feat(focus,ripple): allow setting element.control = elementRef
Why? Makes it easier in lit to attach elements in bindings

```html
<md-ripple .control=${this}>
```

This is needed to support radio, which needs to make the host element interactive.

PiperOrigin-RevId: 559899531
2023-08-24 16:09:25 -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
0e492ade43 chore: remove sass theme utilities
PiperOrigin-RevId: 556915539
2023-08-14 14:39:19 -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
Elizabeth Mitchell
1790a5bbf8 chore: remove closure comments from static blocks
PiperOrigin-RevId: 539772537
2023-06-12 15:07:36 -07:00
Elizabeth Mitchell
0607d9ca53 chore: fix jscompiler issues
PiperOrigin-RevId: 539716693
2023-06-12 11:42:52 -07:00
Elizabeth Mitchell
fdf67682af chore: remove formcontroller
PiperOrigin-RevId: 537898948
2023-06-05 09:32:39 -07:00
Elliott Marquez
f47bdc3925 fix(ssr): make "for" attribute watcher SSR compatible
PiperOrigin-RevId: 536858733
2023-05-31 16:42:50 -07:00
Elizabeth Mitchell
b9daa95164 chore(controller): move to internal
PiperOrigin-RevId: 536574896
2023-05-30 19:43:02 -07:00
Elizabeth Mitchell
e0add8469e chore: internal change
PiperOrigin-RevId: 536573489
2023-05-30 19:31:40 -07:00
Elizabeth Mitchell
36eec7cab3 chore(demo): move to internal
PiperOrigin-RevId: 536472993
2023-05-30 12:13:09 -07:00
Elizabeth Mitchell
a2bb8458d2 chore(sass): move to internal
PiperOrigin-RevId: 536458468
2023-05-30 11:23:00 -07:00
Elizabeth Mitchell
ed00d30b1d chore(motion): move to internal
PiperOrigin-RevId: 536448206
2023-05-30 10:50:00 -07:00
Elizabeth Mitchell
5efdc593fa chore(aria): move to internal
PiperOrigin-RevId: 536444453
2023-05-30 10:37:46 -07:00
Elizabeth Mitchell
4b0c98c1aa feat: add labs and internal folders for non-client code
PiperOrigin-RevId: 535361884
2023-05-25 13:26:26 -07:00