25 Commits

Author SHA1 Message Date
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Copybara-Service
04dcf25c4a Merge pull request #5000 from vdegenne:textfield-cols
PiperOrigin-RevId: 576205502
2023-10-24 11:24:10 -07:00
Elliott Marquez
03e5a7ec8b fix(textfield): forward the multiple field to the native input
fixes #5064

PiperOrigin-RevId: 574295848
2023-10-17 16:21:07 -07:00
Elliott Marquez
8f999d4a0d fix(textfield): calling focus on textfield with a leading icon focuses the input
PiperOrigin-RevId: 574285365
2023-10-17 15:39:25 -07:00
vdegenne
20c9447d4c chore(textfield): Add cols attribute to type textarea 2023-09-26 15:26:41 +02:00
vdegenne
98e7d168bd chore(textfield): Add cols attribute to type textarea 2023-09-26 15:25:34 +02:00
Elizabeth Mitchell
4ad2336b87 feat(select): add required and form association
Fixes #4903

PiperOrigin-RevId: 565260839
2023-09-13 22:45:10 -07:00
Elizabeth Mitchell
7866a939b9 fix(textfield): add demo a11y and fix outlined label navigation
PiperOrigin-RevId: 565191993
2023-09-13 16:19:47 -07:00
Elizabeth Mitchell
c26a578448 fix(textfield): broken required validity on Safari
Fixes #4796

PiperOrigin-RevId: 564562802
2023-09-11 18:39:59 -07:00
Elizabeth Mitchell
61c8f6db46 fix(textfield): don't show focus indicator when focused on icon
PiperOrigin-RevId: 564527586
2023-09-11 16:01:43 -07:00
Copybara-Service
c478b3f9ca Merge pull request #4838 from vdegenne:textfield-autocomplete
PiperOrigin-RevId: 564437185
2023-09-11 10:52:24 -07:00
vdegenne
4d9d2cbd01 chore(text-field): add autocomplete attribute 2023-09-09 14:41:04 +02:00
Andrew Jakubowicz
86aaacd32c fix(textfield): remove icon that appears in search input in chrome and safari
PiperOrigin-RevId: 563914174
2023-09-08 20:03:37 -07:00
Andrew Jakubowicz
82e9e92a19 fix(textfield): change slot names to kebab-case
BREAKING CHANGE: replace slot names `leadingicon` and `trailingicon` with `leading-icon` and `trailing-icon`

PiperOrigin-RevId: 563605216
2023-09-07 18:41:25 -07:00
Elizabeth Mitchell
0c5a2a2886 fix(text-field,select): remove font shorthand tokens
BREAKING CHANGE: replace `*-type` font tokens with `-font`, `-size`, `-line-height`, and `-weight`

PiperOrigin-RevId: 563160975
2023-09-06 11:18:59 -07:00
vdegenne
e4daa8225a chore(text-field): add autocomplete attribute 2023-09-06 10:03:48 +02:00
vdegenne
c6821b44d4 chore(text-field): add autocomplete attribute 2023-09-04 12:12:24 +02:00
Elizabeth Mitchell
ecac7ecbad fix(textfield): show overflowing content like popups and focus rings
Fixes #4071

Note: Right now textareas cannot display overflowing content due to `resize` requiring hidden overflow.

BREAKING CHANGE: The field component must add the `resizable` attribute rather than using CSS. CSS `resize` can still customize the direction (defaults to both).

PiperOrigin-RevId: 561981406
2023-09-01 09:57:57 -07:00
Elizabeth Mitchell
3e13634d64 chore: make formAssociated readonly
PiperOrigin-RevId: 558255234
2023-08-18 14:57:38 -07:00
Elizabeth Mitchell
5d0cbf5e97 feat(textfield): support inputmode attribute
PiperOrigin-RevId: 557881129
2023-08-17 11:18:45 -07:00
Elizabeth Mitchell
a167cabeff fix(textfield): add form validity support
Also fixes form.reportValidity() not working for checkbox.

Fixes #4435

PiperOrigin-RevId: 557654271
2023-08-16 17:43:25 -07:00
Elizabeth Mitchell
0510496e60 chore: avoid this in static context
PiperOrigin-RevId: 554933524
2023-08-08 14:00:25 -07:00
vdegenne
33987c3f4b inline event input parameters 2023-08-02 19:23:44 +02:00
vdegenne
46626bb009 chore(textfield): remove unecessary redispatchEvent 2023-08-02 08:45:15 +02:00
Andrew Jakubowicz
6ec3f06429 fix!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/<component>/lib` to `@material/web/<component>/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550633216
2023-07-24 12:02:59 -07:00