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
Elliott Marquez
86ccec3e7e
build: use firebase for hosting and remove url prefixes
2023-07-27 09:17:27 -07: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
Andrew Jakubowicz
dac3639721
fix(field)!: rename "lib" directory to "internal"
...
BREAKING CHANGE: Rename `@material/web/field/lib` to `@material/web/field/internal`. Prefer not using internal files.
PiperOrigin-RevId: 550049784
2023-07-21 14:24:05 -07:00
Elizabeth Mitchell
ff2e089680
feat(textfield): add textarea type
...
Fixes #4171 , #1305 , #2926
Changes:
- Added "textarea" type (matches native <textarea>, which has a "type" property like `<input>`)
- Moved pointer-events to the label wrapper so it wouldn't overlap content
- Made resizable field respect min-height
- Remove resize handle when field is disabled
PiperOrigin-RevId: 549104722
2023-07-18 14:02:02 -07:00
Andrew Jakubowicz
10f60d23e0
chore: rename e to event
...
PiperOrigin-RevId: 549039407
2023-07-18 10:16:37 -07:00
Elizabeth Mitchell
0ab5fd595d
fix(field): move padding to slotted content
...
PiperOrigin-RevId: 547375880
2023-07-11 21:01:24 -07:00
Elizabeth Mitchell
86aba33dea
fix(textfield)!: rename container-padding-vertical tokens
...
BREAKING CHANGE: Rename `--md-*-field-container-padding-vertical` to `--md-*-field-top-space` and `--md-*-field-bottom-space`. Rename `--md-filled-*-field-with-label-container-padding-vertical` to `--md-filled-*-field-with-label-top-space` and `--md-filled-*-field-with-label-bottom-space`
PiperOrigin-RevId: 547278912
2023-07-11 13:21:57 -07:00
Elizabeth Mitchell
447886da2e
fix(textfield)!: rename container-padding-horizontal token
...
BREAKING CHANGE: Rename `--md-*-field-container-padding-horizontal` to `--md-*-field-leading-space` and `--md-*-field-trailing-space`
PiperOrigin-RevId: 547222914
2023-07-11 10:08:03 -07:00
Elizabeth Mitchell
53966af32d
fix(textfield)!: rename prefix/suffix padding tokens
...
BREAKING CHANGE: Rename `--md-*-text-field-input-text-prefix-padding` and `--md-*-text-field-input-text-suffix-padding` to `--md-*-text-field-input-text-prefix-trailing-space` and `--md-*-text-field-input-text-suffix-leading-space`
PiperOrigin-RevId: 547210256
2023-07-11 09:21:10 -07:00
Elizabeth Mitchell
8fee0a7ebd
fix(textfield)!: remove autocomplete-specific features for now
...
PiperOrigin-RevId: 546122154
2023-07-06 16:28:50 -07:00
Elizabeth Mitchell
b4b3e67ae6
feat(field): add supporting/error text logic
...
PiperOrigin-RevId: 546111440
2023-07-06 15:42:43 -07:00
Elizabeth Mitchell
6762b00588
fix(textfield): make label strict string type
...
PiperOrigin-RevId: 545784105
2023-07-05 14:18:13 -07:00
Andrew Jakubowicz
2937aefa23
fix(field)!: change compound attribute names to kebab-case
...
BREAKING_CHANGE: Attributes `hasstart` and `hasend` have been changed to `has-start` and `has-end` respectively.
PiperOrigin-RevId: 542626280
2023-06-22 11:57:20 -07:00
Andrew Jakubowicz
34dfcb4db1
fix(textfield)!: compound properties should have kebab-case attributes
...
BREAKING_CHANGE: The attributes `errortext`, `prefixtext`, `suffixtext`, `hasleadingicon`, `hastrailingicon`, `supportingtext`, and `textdirection` have been renamed respectively to: `error-text`, `prefix-text`, `suffix-text`, `has-leading-icon`,`has-trailing-icon`, `supporting-text`, and `text-direction`.
PiperOrigin-RevId: 542427064
2023-06-21 19:28:03 -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
2434257086
chore: update annotations after closure extern fixes
...
PiperOrigin-RevId: 537935481
2023-06-05 11:34:43 -07:00
Elizabeth Mitchell
e842f79311
feat(textfield): add form association support
...
PiperOrigin-RevId: 537893731
2023-06-05 09:12:34 -07:00
Elizabeth Mitchell
b9daa95164
chore(controller): move to internal
...
PiperOrigin-RevId: 536574896
2023-05-30 19:43:02 -07:00
Elizabeth Mitchell
5efdc593fa
chore(aria): move to internal
...
PiperOrigin-RevId: 536444453
2023-05-30 10:37:46 -07:00
Elliott Marquez
2c5e2b96c2
fix(demo): fix demos in internal catalog and fix some broken stories in catalog
...
PiperOrigin-RevId: 532269113
2023-05-15 16:58:03 -07:00
Elizabeth Mitchell
2317c5af63
fix(textfield)!: remove defaultValue
...
BREAKING CHANGE: Explicit "defaultValue" has been removed. Set the 'value' attribute to communicate a default value for resetting (similar to native <input>)
PiperOrigin-RevId: 532095818
2023-05-15 06:53:19 -07:00
Elizabeth Mitchell
4ddeee1a2e
chore: remove types folder
...
PiperOrigin-RevId: 532095745
2023-05-15 06:51:39 -07:00
Elliott Marquez
dc49e0b518
docs: update playground urls to match new base-URI
...
PiperOrigin-RevId: 531322264
2023-05-11 15:24:11 -07:00
Elliott Marquez
5f80c096e0
refactor: remove extraneous file extensions
...
PiperOrigin-RevId: 531005525
2023-05-10 14:26:01 -07:00
Elliott Marquez
1cade43ccf
refactor: remove extraneous file extensions
...
PiperOrigin-RevId: 530993820
2023-05-10 14:04:53 -07:00