Elizabeth Mitchell
4142a697ca
feat(labs): change form-submitter to a behavior mixin
...
PiperOrigin-RevId: 878869545
2026-03-04 23:43:05 -08:00
Copybara-Service
c72650fa2e
Merge pull request #5787 from material-components:disabled-link-support
...
PiperOrigin-RevId: 742326684
2025-03-31 11:11:15 -07:00
google-labs-jules[bot]
c3c48485b1
feat(button): add disabled link support
2025-03-28 20:17:50 +00:00
Copybara-Service
919fe12bad
Merge pull request #5769 from TonySpegel:feat/button-download-filename
...
PiperOrigin-RevId: 723241863
2025-02-04 15:12:17 -08:00
Tony Spegel
8aefe1983d
feat(button): rename attribute downloadFilename to download
2025-02-03 20:21:17 +01:00
Tony Spegel
4098832b8b
feat(button): add download filename support for link buttons
2025-02-03 19:45:56 +01:00
Zack Elliott
48124ba09f
feat(button): add soft-disabled attribute for focusable disabled buttons
...
PiperOrigin-RevId: 651854744
2024-07-12 12:31:42 -07:00
Elizabeth Mitchell
5df9410e60
fix!: aria-labels announcing twice with "group" on components
...
BREAKING CHANGE: `querySelector` for `[role]` and `[aria-*]` attributes may no longer work. See `@material/web/migrations/v2/README.md` and `@material/web/migrations/v2/query-selector-aria.ts`.
Browser/SR test results (go/mwc-double-aria-test-results)
- ✅ VoiceOver on Chrome
- ✅ VoiceOver on iOS Safari
- ✅ TalkBack on Chrome
- ✅ ChromeVox on Chrome
- ✅ NVDA on Chrome
- ✅ NVDA on Firefox
- ✅ JAWS on Chrome
- ✅ JAWS on Firefox
(Optional)
- ❓ VoiceOver on Safari
- ❓ VoiceOver on Firefox
PiperOrigin-RevId: 648859827
2024-07-02 15:22:12 -07:00
Elizabeth Mitchell
b75bd2ffb8
docs: button and icon button says "text" instead of "button" for type
...
Fixes #5650
PiperOrigin-RevId: 645142410
2024-06-20 13:44:05 -07:00
Benoit ROBIN
a2b5c91a54
fix(button): add part attribute to button
2024-05-21 16:24:31 +02:00
Elizabeth Mitchell
35913a6ea4
fix(dialog): buttons not reflecting value attribute when setting property
...
Fixes #5409
PiperOrigin-RevId: 600541901
2024-01-22 12:48:44 -08:00
Jan Kuehle
4b4c373a6b
chore: use import and export types
...
PiperOrigin-RevId: 599338980
2024-01-17 17:39:46 -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
96481566ae
refactor(button): move background content outside of inner button
...
Part of a series of changes to support text wrapping and host aria for button.
PiperOrigin-RevId: 581319862
2023-11-10 11:29:54 -08:00
Elizabeth Mitchell
710b87eb3a
chore(button): remove lit static
...
Part of a chain of changes needed to support text wrapping and host aria
PiperOrigin-RevId: 581030820
2023-11-09 14:45:01 -08:00
Elizabeth Mitchell
5bb4a422de
fix(button): allow overriding padding and gap
...
More customization and necessary prep to move styles to host for host aria and text wrapping customization.
PiperOrigin-RevId: 580565272
2023-11-08 09:55:35 -08:00
Elizabeth Mitchell
48d84f86ee
chore(button): remove BEM css class name style
...
Why? We don't use https://getbem.com/ styles anymore now that we have shadow dom.
Just cleanup to help with child changes.
PiperOrigin-RevId: 579980984
2023-11-06 15:50:24 -08: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
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
a2dce1679a
chore(button): refactor render methods
...
PiperOrigin-RevId: 557937034
2023-08-17 14:28:32 -07:00
Andrew Jakubowicz
d665864cba
fix(button): href and target default value is now an empty string
...
The type of `target` has also been made stricter, now only accepting '_blank'|'_parent'|'_self'|'_top'|''.
PiperOrigin-RevId: 557624071
2023-08-16 15:42:04 -07:00
Elizabeth Mitchell
1f46179e83
feat(button): add touch target configs
...
PiperOrigin-RevId: 555666648
2023-08-10 14:57:37 -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
97f5b616d6
fix(button)!: type is submit by default
...
Also fixes the button not being the correct `submitter` for submit events.
BREAKING CHANGE: Buttons submit forms by default, like `<button>`. Add `type="button"` to not submit forms.
PiperOrigin-RevId: 553248284
2023-08-02 13:57:32 -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
601ebb669c
fix(button)!: rename "lib" directory to "internal"
...
BREAKING CHANGE: Rename `@material/web/button/lib` to `@material/web/button/internal`. Prefer not using internal files.
PiperOrigin-RevId: 549999271
2023-07-21 11:20:19 -07:00