Elizabeth Mitchell
615527886b
fix(elevation): disable pointer-events
...
PiperOrigin-RevId: 516274391
2023-03-13 11:43:18 -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
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
828d7aeb4d
fix(all): update non-menu components to v0.161
...
PiperOrigin-RevId: 512101052
2023-02-24 10:16:16 -08:00
Daniel Freedman
45a6d45577
fix(list,menu)!: move to -text-type tokens
...
PiperOrigin-RevId: 510452426
2023-02-17 09:37:08 -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
Elizabeth Mitchell
ff84a66f3e
fix(ripple)!: remove "state-layer" from token names
...
PiperOrigin-RevId: 509298729
2023-02-13 12:17:37 -08:00
Material Web Team
e15c4b86d5
feat(menu,list): expose menu theme mixins and remove divider
...
PiperOrigin-RevId: 506741566
2023-02-02 15:40:21 -08:00
Material Web Team
8f69e62ba7
refactor(menu): rename selected to active for future md-select work
...
PiperOrigin-RevId: 506740196
2023-02-02 15:34:35 -08:00
Material Web Team
1f2a4d963d
chore: fix build for menu and dialog
...
PiperOrigin-RevId: 506728081
2023-02-02 14:44:43 -08:00
Material Web Team
7d5af92ad0
Implements md-menu
...
PiperOrigin-RevId: 504701523
2023-01-25 17:14:44 -08:00
Material Web Team
4077c71461
Implement List
...
PiperOrigin-RevId: 503258388
2023-01-19 13:59:41 -08:00
Elizabeth Mitchell
527b273d8f
fix(list): use new elevation component
...
PiperOrigin-RevId: 499297946
2023-01-03 13:09:48 -08:00
Elizabeth Mitchell
563518b59f
fix(menu): use new elevation component
...
PiperOrigin-RevId: 499297369
2023-01-03 13:06:52 -08:00
Elizabeth Mitchell
eedb7f5d3c
chore: replace * selector with :host
...
PiperOrigin-RevId: 493992896
2022-12-08 14:15:19 -08:00
Elizabeth Mitchell
89eee57074
chore(elevation): branch elevation styles
...
PiperOrigin-RevId: 493625319
2022-12-07 09:27:08 -08:00
Elizabeth Mitchell
1bc1d2b627
chore(menu): merge static/theme-styles
...
PiperOrigin-RevId: 485370563
2022-11-01 11:23:34 -07:00
Elizabeth Mitchell
f2b4eec8f0
chore(menu): update to use local custom properties
...
PiperOrigin-RevId: 485342145
2022-11-01 09:46:05 -07:00
Elizabeth Mitchell
73ca8ae0eb
chore: use relative paths
...
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00
Material Web Team
76bb318d11
chore: rename tslint rule
...
PiperOrigin-RevId: 478066127
2022-09-30 13:23:53 -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
Joy Zhong
a29ac8bebb
feat(menu): Add menu button component. This manages focus automatically on menu open, setting focus to menu item (rather than menu root) if the menu open originated from a keyboard event.
...
PiperOrigin-RevId: 469294184
2022-08-22 15:09:54 -07:00
Joy Zhong
f305806955
feat(menu): Implement menu theming API. Use menu surface/list/list item theme() mixins to style subcomponents.
...
PiperOrigin-RevId: 468705317
2022-08-19 08:15:55 -07:00
Joy Zhong
305b790faa
fix(menu): Fix focus management bugs (TAB on menu item closes menu without restoring focus to anchor element, on menu open, menu respects focusState option (first item, last item, or list root).
...
PiperOrigin-RevId: 466956413
2022-08-11 08:12:17 -07:00
Joy Zhong
7e35820536
feat(menu): Add aria-label support in menu, and set role=menu/menuitem for menu and menu item components.
...
PiperOrigin-RevId: 466359528
2022-08-09 07:58:41 -07:00
Joy Zhong
884c3a204b
feat(menusurface): Add flipMenuHorizontally property, add unit tests.
...
PiperOrigin-RevId: 465404408
2022-08-04 14:25:14 -07:00
Joy Zhong
d37e23de0d
feat(menu): Fix menu closing on menu item click.
...
PiperOrigin-RevId: 464533483
2022-08-01 07:44:37 -07:00
Joy Zhong
60c4a413d3
feat(menu): Add initial menu base component class.
...
PiperOrigin-RevId: 463403263
2022-07-26 12:40:08 -07:00
Joy Zhong
de2993744d
feat(menu): Add menu foundation/adapter and Sass (forked from MDC).
...
PiperOrigin-RevId: 462177572
2022-07-20 10:40:30 -07:00