Commit Graph

3604 Commits

Author SHA1 Message Date
Elizabeth Mitchell
427d33d979 fix(menu): incorrect elevation
PiperOrigin-RevId: 517485685
2023-03-17 12:58:24 -07:00
Elizabeth Mitchell
618a505f57 fix(testing): token tests not working in Safari Chrome
PiperOrigin-RevId: 517206640
2023-03-16 13:10:05 -07:00
Elizabeth Mitchell
878b9143e7 chore!: remove old menusurface, autocomplete, and tokens v0.160
PiperOrigin-RevId: 517165037
2023-03-16 10:45:26 -07:00
Elizabeth Mitchell
c368e7d633 fix(fab)!: remove disabled state
Fixes #4045

PiperOrigin-RevId: 517165006
2023-03-16 10:43:47 -07:00
Elizabeth Mitchell
9582e006c0 feat(chips): add ripple
PiperOrigin-RevId: 517159107
2023-03-16 10:24:36 -07:00
Elizabeth Mitchell
9eb861fc83 feat(chips): add focus ring
PiperOrigin-RevId: 517156213
2023-03-16 10:14:46 -07:00
Daniel Freedman
567d3406b0 fix(iconbutton)!: properly size iconbutton to 40x40
PiperOrigin-RevId: 516948241
2023-03-15 15:37:15 -07:00
Material Web Team
ddac76e3bc fix(menu): flatten submenu slot query
PiperOrigin-RevId: 516879683
2023-03-15 11:22:17 -07:00
Elizabeth Mitchell
f3fe55ec2b feat(chips): add suggestion chips
PiperOrigin-RevId: 516878268
2023-03-15 11:17:10 -07:00
Elizabeth Mitchell
06bdb86803 feat(chips): add link chips
PiperOrigin-RevId: 516873837
2023-03-15 11:02:30 -07:00
Material Web Team
193b220a73 feat(menu): prepare menu to support md-select
Prepare menu to support md-select by doing the following:

- Export default values for typeahead configs
- Allow setting the role of the menu
- Support spaces in typeahead
  - Make the typeahead controller public so that one can bind it to another node
  - Listen to keydown events on capture rather than bubble
  - Allow disabling typeahead with events to prevent submenu typeahead clashes
- Fire opening and closing events synchronously on quick = true
- Fix focus restoration timing as it would fight with setting custom focus on items
- Fix bug with `onWindowClick` not cleaning up
- Add `focus()` as mart of the menuitem api
- Prevent typeahead from messing with focus and leave that to the menu/list

PiperOrigin-RevId: 516640007
2023-03-14 14:51:05 -07:00
Material Web Team
d005d7265e feat(list-item): expose / override host focus
In select, we need to open the menu and focus the last-selected item. `delegatesFocus: true` was causing some flakiness, so I overrode the focus method.

PiperOrigin-RevId: 516639115
2023-03-14 14:47:37 -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
27762d855c feat(chips): add basic assist chip
PiperOrigin-RevId: 516591846
2023-03-14 11:57:17 -07:00
Daniel Freedman
61ff27910e fix(focus)!: refactor focus ring to better match component shape
- Focus ring now adds offset and width to look spec correct
- Replace `offset-vertical` and `offset-horizontal` tokens with a single `offset` token.

PiperOrigin-RevId: 516361036
2023-03-13 16:55:26 -07:00
Daniel Freedman
8a37ce2e00 fix(iconbutton): allow icon button to be asymmetrically sized
Allow icon button to be asymmetrically sized by moving height and width setting to host.

Also, fix focus shape mixin usage.

PiperOrigin-RevId: 516301842
2023-03-13 13:16:17 -07:00
Elizabeth Mitchell
615527886b fix(elevation): disable pointer-events
PiperOrigin-RevId: 516274391
2023-03-13 11:43:18 -07:00
Elizabeth Mitchell
9872dad313 chore(chips): remove old implementation
PiperOrigin-RevId: 516267179
2023-03-13 11:21:00 -07:00
Material Web Team
35147b25b0 feat(list): add spacing tokens and inherit min-width
In this PR:
- Added spacing tokens to list-item
- Made list inherit min-width from host
- Propagated that min-width from menu to list
- Small fix to single-line list item pushing the icon out of the list item if the supporting text was too long

PiperOrigin-RevId: 515750933
2023-03-10 15:16:33 -08:00
Daniel Freedman
912d66ea30 feat(icon): add icon documentation
PiperOrigin-RevId: 515667704
2023-03-10 10:08:22 -08:00
Daniel Freedman
24298e696c feat(button): add label slot
PiperOrigin-RevId: 515467458
2023-03-09 16:03:11 -08:00
Material Web Team
b794990003 chore(update-readme): mark tabs, circular progress, and linear progress as Alpha in progress
PiperOrigin-RevId: 515463394
2023-03-09 15:47:39 -08:00
Liz Mitchell
405ec5399c chore: update next version
Release-As: 1.0.0-pre.5
2023-03-08 15:46:44 -08:00
Elizabeth Mitchell
001278ba0b Merge pull request #4009 from material-components:release-please--branches--master--components--web
PiperOrigin-RevId: 515159864
2023-03-08 23:45:10 +00:00
release-please[bot]
68f1f1c2aa
chore: release 1.0.0-pre.4 2023-03-08 23:26:17 +00:00
Liz Mitchell
a6176de684 chore: update next version
Release-As: 1.0.0-pre.4
2023-03-08 15:25:23 -08:00
Liz Mitchell
367e76aecf chore: update next version
Release-As: 1.0.0-pre.5
2023-03-08 15:20:48 -08:00
Material Web Team
5092de07e9 refactor(menu,list): clean up list-menu tokens and remove list-item variant components
In this PR:

- Remove unnecessary list-item variants
  - `md-list-item-icon` -> md-icon[data-variant=icon]
  - `md-list-item-video` -> video[data-variant=video]
  - `md-list-item-avatar` -> :is(img,div)[data-variant=avatar]
  - `md-list-item-avatar` -> img[data-variant=avatar]
- also upgrade menu tokens to maximize token sharing in list-item and menu-item
- testing menu and list for unused & undefined tokens
- fixed some small things in list to align with spec more

PiperOrigin-RevId: 513932810
2023-03-06 07:01:56 -08:00
Elizabeth Mitchell
f7649add43 docs: update status icons
Fixes #4021

PiperOrigin-RevId: 513295921
2023-03-01 11:37:59 -08: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
828d7aeb4d fix(all): update non-menu components to v0.161
PiperOrigin-RevId: 512101052
2023-02-24 10:16:16 -08:00
Elizabeth Mitchell
e2cd8327b6 feat(tokens): generate tokens v0.161
v0.161
- Deprecated menu specific list item tokens. Use standalone list tokens instead (b/261029781)
- Bug fix, wrong color mapping for date picker "date ranges" (b/269510888)

PiperOrigin-RevId: 511811300
2023-02-23 09:43:47 -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
510a867f0d fix: update license year and holder
Fixes #3073

PiperOrigin-RevId: 511616692
2023-02-22 15:42:31 -08:00
Daniel Freedman
ff3d379bc8 fix(icon): mark icon and icon button as beta
PiperOrigin-RevId: 511613114
2023-02-22 15:27:52 -08:00
Liz Mitchell
9a36b3a9ae chore: update next version
Release-As: 1.0.0-pre.4
2023-02-22 15:23:29 -08:00
Daniel Freedman
232982ef03 fix(icon,iconbutton,list)!: use material symbols for icons
- Material Symbols is recommended for M3
- Refactor list items to use md-icon directly

PiperOrigin-RevId: 511601359
2023-02-22 14:39:58 -08:00
Copybara-Service
c633e85192 Merge pull request #3955 from material-components:release-please--branches--master--components--web
PiperOrigin-RevId: 511577081
2023-02-22 13:10:39 -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
release-please[bot]
5df352072b
chore: release 1.0.0-pre.3 2023-02-22 17:59:41 +00:00
Material Web Team
535d889775 fix(slider)!: fix ripple end hover state when leaving handle
PiperOrigin-RevId: 511523980
2023-02-22 09:58:25 -08:00
Material Web Team
8b58f98a82 fix(controller)!: fix label activation utility on slotted elements
PiperOrigin-RevId: 511523410
2023-02-22 09:57:01 -08:00
Material Web Team
c63a1d9caf fix(dialog)!: fix exception when opening when compiled with advanced closure settings
PiperOrigin-RevId: 511523151
2023-02-22 09:55:28 -08:00
Material Web Team
1f7e538028 chore(dialog): adds screenshot tests
PiperOrigin-RevId: 511353583
2023-02-21 17:58:16 -08:00