Elizabeth Mitchell
b310e6b9e6
test(text-field): add token tests
...
PiperOrigin-RevId: 512659469
2023-02-27 10:09:10 -08:00
Elizabeth Mitchell
a969fdadb6
fix(text-field): apply suffix-color and icon size tokens
...
Text field changes:
- Fixed suffix color token not applying
- Fixed icon size tokens not applying
- Remove redundant styles with field changes
Field changes:
- Added content-type token for inheriting font
- Added leading/trailing content color tokens for icons
- Update field token values functions to be easier to grok all tokens
- Remove container-height token
- Update screenshots for new tokens
PiperOrigin-RevId: 512652818
2023-02-27 09:44:41 -08:00
Elizabeth Mitchell
71cf061403
chore(textfield): clean up rendering implementation
...
PiperOrigin-RevId: 510494532
2023-02-17 12:27:21 -08:00
Elizabeth Mitchell
816762d7f3
chore(text-field): flatten selectors
...
PiperOrigin-RevId: 510444424
2023-02-17 09:01:10 -08:00
Elizabeth Mitchell
4797037493
chore(text-field): remove md3 class prefix
...
PiperOrigin-RevId: 510275510
2023-02-16 16:33:11 -08:00
Daniel Freedman
cc5a7db27d
fix(field & dependents)!: convert to use text-type tokens
...
PiperOrigin-RevId: 510171224
2023-02-16 09:51:22 -08:00
Elizabeth Mitchell
6c2aef6901
chore(all): add keep-sorted comments to Sass imports
...
PiperOrigin-RevId: 509583504
2023-02-14 11:10:23 -08:00
Daniel Freedman
44a8d74f56
fix(all)!: use shape.resolve-tokens and remove shape.resolve-theme
...
PiperOrigin-RevId: 509284550
2023-02-13 11:26:55 -08:00
Daniel Freedman
80590ae88d
fix(all): remove @requirecss comments
...
PiperOrigin-RevId: 503551738
2023-01-20 17:02:21 -08:00
Elizabeth Mitchell
1d81416863
refactor(textfield)!: remove container-height token
...
PiperOrigin-RevId: 501699310
2023-01-12 16:43:06 -08:00
Elizabeth Mitchell
060d204334
chore: update component tokens to v0.152
...
PiperOrigin-RevId: 501055718
2023-01-10 11:56:25 -08:00
Daniel Freedman
c70198a567
fix(list,textfield): Fix TS 4.9 compliation of role property override.
...
PiperOrigin-RevId: 499312798
2023-01-03 14:10:22 -08:00
Material Web Team
eec25b393e
fix(styling): Removes tap highlight color visible on mobile Safari for checkbox, radio, iconbutton, and textfield.
...
PiperOrigin-RevId: 499279539
2023-01-03 11:54:32 -08:00
Material Web Team
d6a410aa91
Export TextfieldType to consumers
...
PiperOrigin-RevId: 497035551
2022-12-21 16:49:20 -08:00
Material Web Team
3f6070ea31
chore(testing): Adds submitForm to testing harness. This submits the element's associated form if one exists and returns the submitted FormData object.
...
* updates form_controller tests.
* updates switch tests.
* adds form submission tests to text field.
PiperOrigin-RevId: 495992202
2022-12-16 17:01:56 -08:00
Elizabeth Mitchell
eedb7f5d3c
chore: replace * selector with :host
...
PiperOrigin-RevId: 493992896
2022-12-08 14:15:19 -08:00
Alexander Marks
933cb14ac8
chore: Comment-out jasmine import statements for external compatibility
...
PiperOrigin-RevId: 491970248
2022-11-30 11:18:44 -08:00
Elizabeth Mitchell
491efc577f
chore(text-field): update tokens
...
PiperOrigin-RevId: 491752389
2022-11-29 15:26:30 -08:00
Elizabeth Mitchell
bff01dadf7
chore(tokens): update to v0.144
...
PiperOrigin-RevId: 491464625
2022-11-28 15:53:25 -08:00
Elizabeth Mitchell
f20e612ed2
chore(field): merge static/theme-styles
...
PiperOrigin-RevId: 483769002
2022-10-25 13:59:54 -07:00
Elizabeth Mitchell
c6b557974a
chore(text-field): merge static/theme-styles
...
PiperOrigin-RevId: 483761765
2022-10-25 13:32:31 -07:00
Elizabeth Mitchell
3ccf911217
chore(text-field): update to use local custom properties
...
PiperOrigin-RevId: 483692535
2022-10-25 09:14:41 -07:00
Elizabeth Mitchell
f2bf1a5c47
chore(text-field): flatten static/theme-styles
...
PiperOrigin-RevId: 483688630
2022-10-25 09:02:06 -07:00
Elizabeth Mitchell
73ca8ae0eb
chore: use relative paths
...
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00
Elizabeth Mitchell
e9bff47acc
chore(autocomplete): remove compat deps
...
PiperOrigin-RevId: 477257348
2022-09-27 13:17:57 -07:00
Elizabeth Mitchell
d40f70b2bd
chore(text-field): make ID properties private
...
PiperOrigin-RevId: 474368908
2022-09-14 13:02:21 -07:00
Elizabeth Mitchell
973a98250b
feat(text-field): announce error messages
...
PiperOrigin-RevId: 474291991
2022-09-14 08:01:59 -07:00
Elizabeth Mitchell
c757bfac45
feat(text-field): error/errorText will override reportValidity
...
PiperOrigin-RevId: 473098457
2022-09-08 15:22:42 -07:00
Elizabeth Mitchell
58ae98cbc8
fix(text-field): ensure value can overwrite defaultValue
...
PiperOrigin-RevId: 472984918
2022-09-08 07:36:28 -07:00
Elizabeth Mitchell
1cc64f543a
feat(text-field): add character counter
...
PiperOrigin-RevId: 472518034
2022-09-06 11:48:06 -07:00
Elizabeth Mitchell
5241b76dca
feat(text-field): add blur and jsdoc
...
PiperOrigin-RevId: 471815433
2022-09-02 09:08:51 -07:00
Elizabeth Mitchell
4e6f01d422
fix(text-field): rename readonly to readOnly
...
PiperOrigin-RevId: 471639592
2022-09-01 14:53:55 -07:00
Elizabeth Mitchell
d584c9042b
chore(text-field): refactor templates for SSR
...
PiperOrigin-RevId: 471302411
2022-08-31 11:18:59 -07:00
Elizabeth Mitchell
4bab4b5874
feat(text-field): add textDirection
...
PiperOrigin-RevId: 471278968
2022-08-31 09:49:52 -07:00
Elizabeth Mitchell
8387a585a0
chore(field): refactor out :focus-within
...
PiperOrigin-RevId: 470267755
2022-08-26 09:45:44 -07:00
Elizabeth Mitchell
810a9a4101
feat(text-field): add pattern
...
PiperOrigin-RevId: 470069611
2022-08-25 13:30:55 -07:00
Elizabeth Mitchell
c73b59cea4
feat(text-field): add min, max, and step
...
PiperOrigin-RevId: 470006182
2022-08-25 09:19:26 -07:00
Alexander Marks
30c95aeee1
chore: add ".js" extensions to import statements.
...
In particular, this allows external build tools like Rollup and @web/dev-server to understand imports of Lit, which is configured to require the ".js" extension via its export conditions (so that Lit import maps can remain minimal).
PiperOrigin-RevId: 469772992
2022-08-24 11:01:21 -07:00
Elizabeth Mitchell
a722fe793c
chore(text-field): add additional aria properties for autocomplete
...
PiperOrigin-RevId: 469739520
2022-08-24 09:01:32 -07:00
Elizabeth Mitchell
17d92f6b4b
fix(text-field): label floating after type changes
...
PiperOrigin-RevId: 469319802
2022-08-22 16:59:45 -07:00
Elizabeth Mitchell
0c8a91fc8f
feat(text-field): add minLength and maxLength
...
PiperOrigin-RevId: 468759213
2022-08-19 12:20:11 -07:00
Elizabeth Mitchell
3e2b20a401
chore(text-field): make fieldTag abstract
...
PiperOrigin-RevId: 468615547
2022-08-18 21:12:54 -07:00
Elizabeth Mitchell
468dc2b862
chore(text-field): clean up ternary operators
...
PiperOrigin-RevId: 468526140
2022-08-18 12:54:32 -07:00
Elizabeth Mitchell
e2e2c9d8a5
feat(text-field): add native validation APIs
...
PiperOrigin-RevId: 467226058
2022-08-12 09:27:20 -07:00
Elizabeth Mitchell
58848f61c9
feat(text-field): add error text
...
PiperOrigin-RevId: 467223935
2022-08-12 09:18:06 -07:00
Kevin Vizcarra
9542b71174
refactor: Stop passing unnecessary elevation tokens when building $dark-theme
...
PiperOrigin-RevId: 467035171
2022-08-11 13:29:01 -07:00
Elizabeth Mitchell
091a124eaf
feat(text-field): add selection APIs
...
PiperOrigin-RevId: 466930001
2022-08-11 05:42:56 -07:00
Elizabeth Mitchell
606697de36
chore(text-field): update to use lit static
...
PiperOrigin-RevId: 466774176
2022-08-10 13:37:01 -07:00
Elizabeth Mitchell
7792ae1b09
feat(text-field): add valueAsNumber and valueAsDate
...
PiperOrigin-RevId: 466696270
2022-08-10 08:46:14 -07:00
Elizabeth Mitchell
246166c4e4
chore(text-field): synchronously render when accessing input
...
PiperOrigin-RevId: 466695986
2022-08-10 08:44:47 -07:00