135 Commits

Author SHA1 Message Date
Li-Yu Yu
0c1d3bcdf2
docs: Fix chip broken link 2024-02-20 17:11:22 +08:00
Copybara-Service
f39617f469 Merge pull request #5455 from kspar:main
PiperOrigin-RevId: 607479911
2024-02-15 15:46:24 -08:00
Elizabeth Mitchell
41bac9e44d feat: add --md-sys-shape-* tokens for all components
PiperOrigin-RevId: 607427925
2024-02-15 13:00:24 -08:00
Elizabeth Mitchell
6589b2ee4b chore: update divider doc freshness
PiperOrigin-RevId: 606648969
2024-02-13 09:31:38 -08:00
Kaspar Papli
e8411378f8
docs: fix typos and wording issues in menu docs 2024-02-12 20:41:10 +01:00
Elizabeth Mitchell
553aaa6695 docs: todo cleanup
PiperOrigin-RevId: 595708369
2024-01-04 08:10:56 -08:00
Elizabeth Mitchell
18bdabedd2 docs: fix broken progress indicator token links
PiperOrigin-RevId: 592021202
2023-12-18 15:09:16 -08:00
Elliott Marquez
bad478dd91 docs(menu): fix the popover demo and warning blockquote
PiperOrigin-RevId: 590796459
2023-12-13 20:19:58 -08:00
Elizabeth Mitchell
1a4388c4ce docs: update freshness
PiperOrigin-RevId: 586763867
2023-11-30 13:07:10 -08:00
Elizabeth Mitchell
5ce1ab815c docs: update freshness
PiperOrigin-RevId: 582496450
2023-11-14 17:59:45 -08:00
Copybara-Service
128abcb325 Merge pull request #5150 from scherler:icon_size
PiperOrigin-RevId: 582411939
2023-11-14 12:51:34 -08:00
Patrick Eriksson
e1fb15bb35
Update text-field.md
Fix the URL to material-web.dev
2023-11-13 15:42:37 +01:00
Elliott Marquez
7859b39afe feat(menu): add popover functionality
Uses popover API for browsers that support it. Falls back to fixed positioning on browsers that do not.

fixes #2023
fixes #5120

PiperOrigin-RevId: 580633646
2023-11-08 13:14:25 -08:00
Elliott Marquez
2b591ca759 feat(menu): add document-level positioning
related #5120

PiperOrigin-RevId: 580293404
2023-11-07 14:04:00 -08:00
Thorsten Scherler
08673751be
[fix_typo] fix tag name
Signed-off-by: Thorsten Scherler <scherler@gmail.com>
2023-11-06 13:53:31 +01:00
Thorsten Scherler
57cec62ea2
[icon_size] add note to the docu about the featuere
Signed-off-by: Thorsten Scherler <scherler@gmail.com>
2023-11-03 14:15:48 +01:00
lit-robot
f0e8dea8b7 docs: update API docs 2023-10-24 20:59:01 +00:00
Copybara-Service
fb60ce608a Merge pull request #5040 from Burtan:main
PiperOrigin-RevId: 576260743
2023-10-24 13:39:21 -07:00
Copybara-Service
b5bab09ed0 Merge pull request #5080 from datvm:correct-progress-buffer-doc
PiperOrigin-RevId: 576191728
2023-10-24 10:44:39 -07:00
lit-robot
aeb015ca2a docs: update API docs 2023-10-17 23:22:01 +00:00
Luke Vo
0f5a4f4067 Corrected buffer value description 2023-10-13 17:58:50 -05:00
Frederik Bertling
c26f206a01 List docs: moved img width into styles block for img in start slot example 2023-10-03 09:30:45 +02:00
Frederik Bertling
2b05c7fe0d Removed various slots, like avatar/icon/image from list documentations 2023-09-30 09:33:11 +02:00
lit-robot
93243e0290 docs: update API docs 2023-09-28 20:14:04 +00:00
Jeremy Odekirk
12bd004b55
Update select fix URL to material design select.md 2023-09-28 09:05:54 -05:00
Elliott Marquez
57f7ff51ed docs(radio): document events on radio
PiperOrigin-RevId: 568945525
2023-09-27 13:35:14 -07:00
Elliott Marquez
e8fcfa3889 docs(list): update the list docs off of old list implementation
PiperOrigin-RevId: 568694592
2023-09-26 17:28:31 -07:00
lit-robot
84df854bb7 docs: update API docs 2023-09-25 21:32:35 +00:00
Elliott Marquez
aeb5103e1c fix(menu,select): fix final aria issues
PiperOrigin-RevId: 568326002
2023-09-25 14:31:52 -07:00
Elliott Marquez
c789c99036 chore(fab): explicitly mark function as protected for API docs
PiperOrigin-RevId: 568274397
2023-09-25 11:20:26 -07:00
Elliott Marquez
0e3a4af9ef docs(menu): update menu docs to use new item format
PiperOrigin-RevId: 567885727
2023-09-23 11:23:59 -07:00
Elliott Marquez
5e4434bfed fix(select): update select docs and fix initial selection
PiperOrigin-RevId: 567884899
2023-09-23 11:14:56 -07:00
Elliott Marquez
63b01425e7 refactor(menu,select)!: rename fixed to positioning
This will enable forwards compatibility for `positioning="top-layer"` with popover.

BREAKING CHANGE: refactor `fixed` property to `positioning="fixed"` in Menu and `menuFixed` to `menuPositioning="fixed"`

PiperOrigin-RevId: 567723646
2023-09-22 14:54:57 -07:00
Elliott Marquez
54fbb2ed5e feat(menu): implement md-sub-menu
md-sub-menu will succeed md-sub-menu-item. It allows for screen reader linear navigation

PiperOrigin-RevId: 567057310
2023-09-20 13:09:44 -07:00
lit-robot
621192bc12 docs: update API docs 2023-09-20 06:58:11 +00:00
Elliott Marquez
9f3e55d79a docs: auto-generate API docs
Updates API docs in our markdown files with Lit Analyzer by manually running `npm run update-docs`

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-web/pull/4946 from material-components:api-docs 1322ca962041a4b1f30ef7ad3ef2c7eb9087f42b
PiperOrigin-RevId: 566834596
2023-09-19 21:05:47 -07:00
Elizabeth Mitchell
e8b5b29d1e feat(iconbutton): update tokens to v0.192
BREAKING CHANGE: Replace `container-size` tokens with `container-width` and `container-height`.

PiperOrigin-RevId: 566801178
2023-09-19 17:52:12 -07:00
Elliott Marquez
80c53d3a8b docs(textfield): textfield images and figures
PiperOrigin-RevId: 566773604
2023-09-19 16:09:25 -07:00
Andrew Jakubowicz
3b5cbc4ede fix(list)!: list items are now noninteractive by default
BREAKING CHANGE: the `noninteractive` property has been replaced by the `interactive` property, and by default, a list-item will no longer show a ripple or focus ring.
What to change:
- To preserve prior default behavior, add the `interactive` attribute explicitly.
- Any setting of a truthy `noninteractive` attribute or property can be removed as it's the new default behavior.

PiperOrigin-RevId: 566696782
2023-09-19 11:43:59 -07:00
Andrew Jakubowicz
e3b3d86fa9 docs(select): add select documentation
PiperOrigin-RevId: 566674810
2023-09-19 10:34:58 -07:00
Elliott Marquez
6e54048f1e refactor(menu)!: rename corner and focus state values lowercase with dashes
BREAKING: for style guide enum consistency, we have renamed the corner values START_START etc. to be lowercase with dashes. e.g. start-start. The same has been done with MdMenu.defaultFocus' values.
PiperOrigin-RevId: 566454879
2023-09-18 17:09:17 -07:00
Copybara-Service
ff3073a280 Merge pull request #4944 from datvm:patch-1
PiperOrigin-RevId: 566394877
2023-09-18 13:19:40 -07:00
Elizabeth Mitchell
16bfac1343 feat(chips): swap to toolbar a11y pattern
BREAKING CHANGE: chips now follow the [aria toolbar pattern](https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/examples/toolbar/). Chip sets are toolbars and chips are buttons or links. Filter chips are toggle buttons.
What to change:
- Remove `type` attribute from `<md-chip-set>` (you can mix and match chip types!)
- Remove `single-select` from `<md-chip-set>`. Use JS to control filter chips if single selection is required. Radio filter chips will come in a future update.
- Disabled chips CAN be focused with the keyboard if `always-focusable` is set.
- Filter chips no longer dispatch a `"selected"` event. Listen to `"click"` and use `event.target.selected` instead.
- ArrowUp and ArrowDown no longer navigate between chips. These are reserved for chip actions, like dropdown menu chips.

PiperOrigin-RevId: 566352830
2023-09-18 10:57:56 -07:00
Elizabeth Mitchell
94b5c8125e feat(menu): update tokens to v0.192
- Adds `--md-menu-item-selected-label-text-color` token

BREAKING CHANGE: menu selected container color changed to secondary-container

PiperOrigin-RevId: 565807703
2023-09-15 16:35:25 -07:00
Elliott Marquez
9447ec7d72 refactor(list)!: move list aria to host
BREAKING CHANGE: Aria and roles on List have been moved to the host element. list-tabindex attribute should be migrated to tabindex attribute. type attribute should be migrated to role attribute.

PiperOrigin-RevId: 565767899
2023-09-15 13:45:32 -07:00
Luke Vo
2a6b689a0d
Corrected button trailing-icon 2023-09-15 14:44:03 -05:00
Elliott Marquez
ed689952dd feat(list,menu,select): add slots for specific slotted variants
PiperOrigin-RevId: 565536994
2023-09-14 18:42:43 -07:00
Elizabeth Mitchell
58f2446246 fix(tabs): a11y and tabs sometimes not activating
PiperOrigin-RevId: 564453926
2023-09-11 11:43:09 -07:00
Elizabeth Mitchell
1442f9b223 fix(tabs): setting active on tab selects them
BREAKING CHANGE: Rename the `selected` index property on md-tabs to `activeTabIndex` (`active-tab-index` attribute). Rename `select-on-focus` to `auto-activate`

PiperOrigin-RevId: 564437639
2023-09-11 10:53:44 -07:00
Elizabeth Mitchell
a8ce2ab427 docs: fix broken theming links
PiperOrigin-RevId: 564410908
2023-09-11 09:32:57 -07:00