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
Material Web Team
003579af1d
refactor(switch): format the Sass files.
...
PiperOrigin-RevId: 466951853
2022-08-11 07:50:42 -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
Material Web Team
b4bcf4efff
fix(formfield): fix broken import
...
PiperOrigin-RevId: 466508206
2022-08-09 16:52:24 -07:00
Material Web Team
ad1db85d4f
feat(switch): mark opacity tokens as hardcoded.
...
PiperOrigin-RevId: 466428204
2022-08-09 12:04:30 -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
8f63406cdc
feat(list): Add customizable aria-label
/role
attributes to list, and customizable role
to list item.
...
PiperOrigin-RevId: 466358466
2022-08-09 07:53:56 -07:00
Elizabeth Mitchell
77cc80e634
feat(text-field): add supporting text
...
PiperOrigin-RevId: 466241727
2022-08-08 21:45:52 -07:00
Elizabeth Mitchell
a96664b835
fix(field): supporting text typography not resolving
...
PiperOrigin-RevId: 466241475
2022-08-08 21:44:32 -07:00
Material Web Team
647a767029
chore: internal change
...
PiperOrigin-RevId: 466147485
2022-08-08 14:23:12 -07:00
Elizabeth Mitchell
fe86936d91
chore(text-field): remove wrapper slot spans
...
PiperOrigin-RevId: 466112636
2022-08-08 12:15:47 -07:00
Material Web Team
f7e1bbb7ae
fix(tab): Fixes how tabs renders icons.
...
When a image icon is provided through the icon `<slot>`, it is now rendered directly into the tab content element (technically into an icon wrapper that is a direct child of the tab content element). Previously the slotted icon would be rendered as the contents of `<md-icon>`. While this didn't affect the visual output of the tab component, it created unnecessary additional layers of nesting/shadow dom.
PiperOrigin-RevId: 466052019
2022-08-08 08:42:03 -07:00
Material Web Team
2d2b3bbeda
feat(list): Added focus ring to list item
...
PiperOrigin-RevId: 465970848
2022-08-08 00:18:11 -07:00
Material Web Team
c293a8dfff
feat: add more detail to error message on sass color function.
...
PiperOrigin-RevId: 465587302
2022-08-05 10:02:18 -07:00
Material Web Team
ee35bfe7f1
feat(list): Add basic keyboard navigation to M3 list
...
PiperOrigin-RevId: 465533534
2022-08-05 04:20:35 -07:00
Joy Zhong
884c3a204b
feat(menusurface): Add flipMenuHorizontally
property, add unit tests.
...
PiperOrigin-RevId: 465404408
2022-08-04 14:25:14 -07:00
Elizabeth Mitchell
f8d950f3f6
chore(field): remove field ID property
...
PiperOrigin-RevId: 465328988
2022-08-04 09:12:02 -07:00
Elizabeth Mitchell
f94a45216e
chore(motion): update standard easing to latest value
...
PiperOrigin-RevId: 465277416
2022-08-04 04:19:37 -07:00
Elizabeth Mitchell
7285b3a2db
fix(text-field): correctly resizes when setting width
...
PiperOrigin-RevId: 465164744
2022-08-03 15:33:02 -07:00
Elizabeth Mitchell
d1fb068d62
chore(field): update animations
...
PiperOrigin-RevId: 465135334
2022-08-03 13:34:22 -07:00
Material Web Team
6aab3acaf8
style(tab): Fixing tab style rules that resulted in incorrect sizing.
...
- When converting to css logical properties, `padding-left`/`right` were mistakenly converted to `padding-block-start`/`end` instead of `padding-inline-start`/`end`. This resulted in tabs having insufficent horizontal padding.
- Flex styles that allows tabs to expand/grow into all available tab bar space was applied on the wrong wrapper element. Added additional styling to take this extra wrapper into account.
- Removes call from tab-scroller into a tab mixin as there's no clear reason as to why this `position: relative` needed to be defined in a tab mixin (no selector making it specific to tab). Since this mixin was only used by the tab scroller, also removes the `parent-positioning` mixin definition.
PiperOrigin-RevId: 465099906
2022-08-03 11:11:47 -07:00
Material Web Team
bf29bc36e5
feat(list): Added test harnesses to list
...
PiperOrigin-RevId: 464762613
2022-08-02 05:05:04 -07:00
Material Web Team
89e8ff9a79
style(tab): Adds omitted icon selector for tabs
...
This resulted in icon sizing styles being applied to the tab.
PiperOrigin-RevId: 464599656
2022-08-01 12:46:53 -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
Material Web Team
a885a1faff
fix(list): Fixed layout of list variants.
...
PiperOrigin-RevId: 464498232
2022-08-01 03:27:58 -07:00
Material Web Team
c27725234d
feat(list): Added soy template annotations for image classes slot
...
PiperOrigin-RevId: 464490814
2022-08-01 02:31:52 -07:00
Material Web Team
62092b7c9b
fix(list): Changed Headline text from slot content to text property of list item
...
PiperOrigin-RevId: 464490608
2022-08-01 02:30:18 -07:00
Material Web Team
17075f4855
feat(form-field): Added theme styles to form field
...
PiperOrigin-RevId: 464479156
2022-08-01 01:11:54 -07:00
Elizabeth Mitchell
424596edce
feat(text-field): add icons
...
PiperOrigin-RevId: 464165729
2022-07-29 15:04:12 -07:00
Material Web Team
1ddcbbae2f
chore: internal change
...
PiperOrigin-RevId: 464164877
2022-07-29 15:00:13 -07:00
Elizabeth Mitchell
2a0d563338
feat(controller): add stringConverter for empty reflecting attributes
...
PiperOrigin-RevId: 464124340
2022-07-29 11:43:40 -07:00
Material Web Team
bcc56359f9
Prepare for AriaMixin properties type migration from (string|undefined) to (string|null).
...
"As of ARIA 1.2, all ARIA attributes exposed via IDL are defined as nullable DOMStrings. This matches the current implementation of all major rendering engines." (https://w3c.github.io/aria/#enumerated-attribute-values-html )
PiperOrigin-RevId: 464072489
2022-07-29 07:21:15 -07:00
Elizabeth Mitchell
dc7d9494f7
feat(field): add leading/trailing content styles
...
PiperOrigin-RevId: 463835470
2022-07-28 07:46:02 -07:00
Kevin Vizcarra
61eb08e7b1
fix(button): Use correct padding for Text Button
...
According to the [M3 spec](https://m3.material.io/components/buttons/specs#899b9107-0127-4a01-8f4c-87f19323a1b4 ), Text Buttons have less side padding than the other Button variants.
PiperOrigin-RevId: 463712391
2022-07-27 17:01:23 -07:00
Kevin Vizcarra
94ea58ec37
refactor(button): Refactor Text Button padding implementation
...
PiperOrigin-RevId: 463685753
2022-07-27 14:53:37 -07:00
Elizabeth Mitchell
6b25914f60
fix(text-field): container-shape not working for outlined variant
...
PiperOrigin-RevId: 463574366
2022-07-27 06:50:53 -07:00
Material Web Team
92a5ee4506
refactor(switch): select input by class name.
...
PiperOrigin-RevId: 463479217
2022-07-26 19:20:00 -07:00
Material Web Team
b315d62c50
chore(chips): Fork foundation, adapter, and Sass files: Action
...
PiperOrigin-RevId: 463460098
2022-07-26 17:02:31 -07:00
Joy Zhong
60c4a413d3
feat(menu): Add initial menu base component class.
...
PiperOrigin-RevId: 463403263
2022-07-26 12:40:08 -07:00
Material Web Team
4d292f4cc6
feat(list): Add ripple to M3 list
...
PiperOrigin-RevId: 463358686
2022-07-26 09:42:26 -07:00
Material Web Team
1d3701a94d
refactor(switch): rename property to not start with 'on'
...
PiperOrigin-RevId: 463352763
2022-07-26 09:20:42 -07:00
Material Web Team
9152fed0b9
fix(checkbox): Remove unused methods and cleanup styles
...
PiperOrigin-RevId: 463285386
2022-07-26 02:19:21 -07:00
Joy Zhong
4b79baa980
feat(list): Add support for fetching list items.
...
PiperOrigin-RevId: 463122235
2022-07-25 10:45:20 -07:00
Material Web Team
07aaa8a763
fix(list): Fixed list item icon padding
...
PiperOrigin-RevId: 463008397
2022-07-24 22:59:43 -07:00
Material Web Team
57c2cfde38
refactor(switch): move focus-ring styles to the :host level.
...
PiperOrigin-RevId: 462729325
2022-07-22 16:38:22 -07:00
Material Web Team
10a6d353fc
refactor: mark disabled
and checked
as boolean values in lit templates.
...
PiperOrigin-RevId: 462716556
2022-07-22 15:27:12 -07:00
Material Web Team
42168d3c89
chore(checkbox): move test code closer to the code it's testing.
...
PiperOrigin-RevId: 462696819
2022-07-22 13:54:33 -07:00