Elizabeth Mitchell
c390291687
chore: format files with prettier
...
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elizabeth Mitchell
9194cc94db
fix(textfield): missing focused left border for textarea in HCM
...
PiperOrigin-RevId: 569336619
2023-09-28 17:36:12 -07:00
Andrew Jakubowicz
448fcddfa2
chore: decouple field component from interface imported from menu
...
PiperOrigin-RevId: 567361278
2023-09-21 11:09:34 -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
61c8f6db46
fix(textfield): don't show focus indicator when focused on icon
...
PiperOrigin-RevId: 564527586
2023-09-11 16:01:43 -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
Elizabeth Mitchell
cdd2ea6c1d
fix(textfield): textarea resize handle overlapping outline
...
PiperOrigin-RevId: 562022448
2023-09-01 12:37:14 -07: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
11cc4721ce
fix(textfield): don't transition colors when disabling
...
PiperOrigin-RevId: 561801775
2023-08-31 17:12:30 -07:00
Elizabeth Mitchell
541c0e947d
fix(textfield): line breaks not visible in Firefox
...
Fixes #4581
PiperOrigin-RevId: 561168215
2023-08-29 16:20:46 -07:00
Elliott Marquez
86ccec3e7e
build: use firebase for hosting and remove url prefixes
2023-07-27 09:17:27 -07:00
Andrew Jakubowicz
a8c2fa9a8b
fix(menu)!: rename "lib" directory to "internal"
...
BREAKING CHANGE: Rename `@material/web/menu/lib` to `@material/web/menu/internal`. Prefer not using internal files.
PiperOrigin-RevId: 550589890
2023-07-24 09:45:01 -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
Elizabeth Mitchell
398204676e
chore(field): rename label wrapper class
...
PiperOrigin-RevId: 548172351
2023-07-14 11:10:34 -07:00
Elizabeth Mitchell
7fdd0c4c31
fix(field): use margin for textarea content
...
PiperOrigin-RevId: 548159696
2023-07-14 10:25:00 -07:00
Elizabeth Mitchell
e1f881991a
fix(field): keep label in same spot when resizing
...
PiperOrigin-RevId: 547572280
2023-07-12 12:39:18 -07:00
Elizabeth Mitchell
6734344e73
fix(field)!: remove resizable, use css resize: both
...
PiperOrigin-RevId: 547567087
2023-07-12 12:19:15 -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
4f37b4474f
fix(textfield)!: rename supporting-text-padding tokens
...
BREAKING CHANGE: Rename `--md-*-field-supporting-text-padding` to `--md-*-field-supporting-text-leading-space` and `--md-*-field-supporting-text-trailing-space`. Rename `--md-*-field-supporting-text-padding-top` to `--md-*-field-supporting-text-top-space`
PiperOrigin-RevId: 547218344
2023-07-11 09:52:25 -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
Elizabeth Mitchell
ed00d30b1d
chore(motion): move to internal
...
PiperOrigin-RevId: 536448206
2023-05-30 10:50:00 -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
b6ae8268a2
refactor: fix stories links
...
PiperOrigin-RevId: 531019393
2023-05-10 15:23:08 -07:00
Elliott Marquez
1cade43ccf
refactor: remove extraneous file extensions
...
PiperOrigin-RevId: 530993820
2023-05-10 14:04:53 -07:00
Elizabeth Mitchell
b9e3afc2b7
chore(textfield): remove shape resolver
...
PiperOrigin-RevId: 528529823
2023-05-01 11:40:17 -07:00
Daniel Freedman
9ce10bc100
chore(all): remove unnecessary property typing for strings
...
PiperOrigin-RevId: 523201301
2023-04-10 13:43:10 -07:00
Elizabeth Mitchell
f15d8ca2fa
fix(textfield): tonal surface update
...
PiperOrigin-RevId: 522243926
2023-04-05 22:02:19 -07:00
Elizabeth Mitchell
3934f51e1d
chore(tokens): update default to v0.172
...
PiperOrigin-RevId: 522134400
2023-04-05 13:12:02 -07:00
Material Web Team
533ae6c999
feat(field,menu): create a surface client rect api for positioning
...
Expose the field container element to allow anchoring directly to it. This is necessary because if there is supporting text below the field, anchoring a menu to the md-field will cause the menu to anchor below the supporting text which would require some manual pixel-offsets to align correctly.
PiperOrigin-RevId: 516636675
2023-03-14 14:38:55 -07:00
Elizabeth Mitchell
c98f5e017d
fix(textfield): outlined label jumping horizontally with leading icon
...
PiperOrigin-RevId: 513028108
2023-02-28 13:45:10 -08:00
Elizabeth Mitchell
fd605d537c
feat(field): add resizability
...
PiperOrigin-RevId: 512747965
2023-02-27 15:27:57 -08:00
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
d755d107fa
fix(text-field): remove indicator expansion animation
...
PiperOrigin-RevId: 512117352
2023-02-24 11:17:23 -08:00
Elizabeth Mitchell
e7c766f818
chore(field): swap the label that is animated
...
PiperOrigin-RevId: 511654319
2023-02-22 18:44:40 -08:00
Elizabeth Mitchell
d9f911ad17
chore(field): make animations synchronous
...
PiperOrigin-RevId: 511617262
2023-02-22 15:44:52 -08:00
Elizabeth Mitchell
cff8a3c49e
chore(field): replace spans with divs
...
PiperOrigin-RevId: 511560974
2023-02-22 12:07:18 -08:00
Elizabeth Mitchell
7cea77390a
refactor(field): simplify rendering
...
PiperOrigin-RevId: 511557733
2023-02-22 11:55:15 -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
527203e1f6
chore(field): flatten selectors
...
PiperOrigin-RevId: 509916671
2023-02-15 13:31:34 -08:00
Elizabeth Mitchell
c1e7759233
chore(field): remove md3-field class prefix
...
PiperOrigin-RevId: 509885860
2023-02-15 11:18:08 -08:00
Elizabeth Mitchell
c435a3357c
chore(field): clean up rendering and member visibility
...
PiperOrigin-RevId: 509883678
2023-02-15 11:11:04 -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