Commit Graph

4878 Commits

Author SHA1 Message Date
Elizabeth Mitchell
3e934e17b9 chore: remove todo from catalog code
PiperOrigin-RevId: 608782651
2024-02-20 16:34:59 -08:00
Elizabeth Mitchell
7154a44fec chore: remove obsolete bug todo
PiperOrigin-RevId: 608779974
2024-02-20 16:25:29 -08:00
Elizabeth Mitchell
4f073ec1ec chore: remove TODOs for unactionable bugs
PiperOrigin-RevId: 608775304
2024-02-20 16:10:07 -08:00
Copybara-Service
97c2e84d90 Merge pull request #5463 from CarlosEGuerraSilva:main
PiperOrigin-RevId: 608764139
2024-02-20 15:37:34 -08:00
Copybara-Service
20570e51af Merge pull request #5475 from afq984:patch-1
PiperOrigin-RevId: 608762817
2024-02-20 15:35:46 -08:00
Elizabeth Mitchell
54872bdbdf chore: remove FF bug todo from test
PiperOrigin-RevId: 608762761
2024-02-20 15:34:12 -08:00
Elizabeth Mitchell
9e2cea5073 chore: remove todos from web-test-running.config.js
PiperOrigin-RevId: 608762543
2024-02-20 15:32:23 -08:00
Li-Yu Yu
0c1d3bcdf2
docs: Fix chip broken link 2024-02-20 17:11:22 +08:00
Material Web Team
2049323dde fix(menu): left arrow in submenu closes submenu in closure
PiperOrigin-RevId: 608184142
2024-02-18 17:28:53 -08:00
Luke Vo
2512f55c1d Removed linear progress buffer clamping 2024-02-17 11:54:59 +07:00
Elizabeth Mitchell
87d7eac5c5 chore(checkbox): fix aria for checkbox list demo
PiperOrigin-RevId: 607822159
2024-02-16 15:47:32 -08:00
Elizabeth Mitchell
4d2684119e chore(dialog): disable extending dialog internally with closure
PiperOrigin-RevId: 607775035
2024-02-16 12:56:45 -08:00
Carlos Guerra
43a8147b4f
Merge branch 'main' into main 2024-02-15 20:36:29 -06:00
Carlos Guerra
fb086bbd35 fix(labs): hasConstructed and constructor deprecated, changing tabIndex update in connectedCallback 2024-02-15 20:35:57 -06: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
Carlos Guerra
a5b8a761b0
Merge branch 'main' into main 2024-02-15 12:08:32 -06:00
Luke Vo
a8a9d56581 Buffer default value is now 0 and added some code cleanup. 2024-02-15 17:28:38 +07:00
Carlos Guerra
ea518d0353 fix(labs): removing hasConstructed and setting privateIsConstructed to handle setting tabIndex 2024-02-15 01:38:19 -06:00
Elizabeth Mitchell
b23e3218ee fix(icon): fix uncentered icons when using WCAG text spacing overrides
If you were using `font-size`, you may need to change it to `--md-icon-size` if icons shift.

PiperOrigin-RevId: 607096212
2024-02-14 13:55:54 -08:00
Copybara-Service
8d2b6447e4 Merge pull request #5456 from adrianjost:adrian/5297
PiperOrigin-RevId: 607080215
2024-02-14 13:05:38 -08:00
Elizabeth Mitchell
f2ff86725c fix: remove :host-context rtl selectors
We can support this now that Chrome 120-121 are stable.

PiperOrigin-RevId: 606984234
2024-02-14 07:53:51 -08:00
Carlos Guerra
a6b8c09026 fix(labs): update tabIndex once the element is connected to the DOM
Fix for #5398 , when hydrating tabIndex on radios and tabs, it causes a DOMException. The proposed solution suggests moving the hasConstructed property and calling the updateTabIndex method in the connectedCallback to be able to modify the tabIndex as soon as the element is connected to the DOM
2024-02-13 19:17:46 -06:00
Elizabeth Mitchell
6589b2ee4b chore: update divider doc freshness
PiperOrigin-RevId: 606648969
2024-02-13 09:31:38 -08:00
Adrian Jost
84a44772b4
implement pr feedback 2024-02-13 09:34:38 +00:00
Kaspar Papli
f0e78db6d2
docs: fix wording issue in submenu docs 2024-02-12 20:53:55 +01:00
Kaspar Papli
b1efe3222c
docs: fix typos and wording issues in menu docs 2024-02-12 20:51:37 +01:00
Adrian Jost
4bce86d18b
feat(tabs): expose activeTabIndex
fixes #5297
2024-02-12 19:44:41 +00:00
Kaspar Papli
e8411378f8
docs: fix typos and wording issues in menu docs 2024-02-12 20:41:10 +01:00
Elizabeth Mitchell
6b95a13ee1 chore: remove fixed todo and added reference to another bug
PiperOrigin-RevId: 605765628
2024-02-09 16:42:16 -08:00
Elizabeth Mitchell
5f93c82546 chore(iconbutton): add distinctly labelled examples for a11y
PiperOrigin-RevId: 602853997
2024-01-30 15:11:45 -08:00
Elizabeth Mitchell
e18d913eb3 chore(button): add unique aria labels to buttons with icons
PiperOrigin-RevId: 602512735
2024-01-29 15:10:29 -08:00
Elizabeth Mitchell
6ecda49749 chore(tabs): fix color contrast for custom tabs demo
PiperOrigin-RevId: 601833325
2024-01-26 12:13:41 -08:00
Elizabeth Mitchell
04b7e9b120 chore(textfield): fix demo clear icon button not disabling
PiperOrigin-RevId: 601821460
2024-01-26 11:34:17 -08:00
Elizabeth Mitchell
5e40a1bcec chore: create shape logical tokens in Sass component token files
Adds `@material/web/tokens/internal/shape` to take a shape token and create 4 logical tokens from its value.

All components' logical shape tokens are now generated by the token files themselves, rather than added in each component's styles.

PiperOrigin-RevId: 601783846
2024-01-26 09:13:58 -08:00
Elizabeth Mitchell
84536d7416 chore: update components to use custom properties from tokens
PiperOrigin-RevId: 601597083
2024-01-25 16:13:41 -08:00
Elizabeth Mitchell
feff7214a7 feat(tokens): add component custom properties to Sass values
These are excluded by default, but will be enabled by default in 2.0.

Example: `tokens.md-comp-checkbox-values($exclude-custom-properties: false)`
PiperOrigin-RevId: 601596085
2024-01-25 16:10:32 -08:00
Elizabeth Mitchell
c9e72ce194 chore: fix size update github action date format
PiperOrigin-RevId: 601557983
2024-01-25 13:59:12 -08:00
Elizabeth Mitchell
e056d1dd2f chore(textfield): move newly added tokens into Sass component tokens
PiperOrigin-RevId: 601397525
2024-01-25 03:31:32 -08:00
Copybara-Service
3be7ca37be Merge pull request #5295 from material-components:release-please--branches--main--components--web
PiperOrigin-RevId: 601180916
2024-01-24 11:24:44 -08:00
Copybara-Service
f54e01d3a0 Merge pull request #5335 from material-components:auto-update-sizes
PiperOrigin-RevId: 601172158
2024-01-24 10:57:12 -08:00
lit-robot
42bf9a95da chore: update sizes 2024-01-24 18:46:18 +00:00
release-please[bot]
79c00f5fc9
chore: release 1.2.0 2024-01-24 18:45:44 +00:00
Elizabeth Mitchell
86bd6f8309 fix(menu): --md-menu-item-container-color not working
This change removes the leftover md-comp-menu-list-item token set, which doesn't have a corresponding component. If you're using it, the correct token set to use is md-comp-menu-item.

As a side effect of the merge, it also added the missing menu item container-color token.

PiperOrigin-RevId: 601168134
2024-01-24 10:44:44 -08:00
Elizabeth Mitchell
901a5cbd12 chore(elevation): move private custom properties off of host
Elevation doesn't have variant styles, but it still uses shorter private custom properties to reduce its CSS size. I added a comment explaining why and moved the custom properties into the inner shadow dom so they can't be set on the host.

No size changes.

PiperOrigin-RevId: 601128500
2024-01-24 08:27:45 -08:00
Elizabeth Mitchell
044ee51d13 refactor(radio): reduce CSS size
Reduces the size by removing private (`--_*`) custom properties. These are not needed since the component does not share styles across variants.

Size before: 4568b / 1034b gzip
Size after: 3245b (-29%) / 907b gzip (-12%)

PiperOrigin-RevId: 600928780
2024-01-23 15:41:28 -08:00
Elizabeth Mitchell
a2721c39d4 refactor(switch): reduce CSS size
Reduces the size by removing private (`--_*`) custom properties. These are not needed since the component does not share styles across variants.

Size before: 14,615b / 2,327b gzip
Size after: 10,802 (-26%) / 1,865b gzip (-20%)

PiperOrigin-RevId: 600918909
2024-01-23 15:06:24 -08:00
Elizabeth Mitchell
0eb0e94bdc refactor(ripple): reduce CSS size
Reduces the size by removing private (`--_*`) custom properties. These are not needed since the component does not share styles across variants.

Size before: 1293b / 532b gzip
Size after: 1171b (-9%) / 502b gzip (-0.2%)

PiperOrigin-RevId: 600917333
2024-01-23 15:01:55 -08:00
Elizabeth Mitchell
93071d47bd refactor(dialog): reduce CSS size
Reduces the size by removing private (`--_*`) custom properties. These are not needed since the component does not share styles across variants.

Size before: 4597b / 1322b gzip
Size after: 4092b (-13%) / 1194b gzip (-10%)

PiperOrigin-RevId: 600905310
2024-01-23 14:19:44 -08:00
Elizabeth Mitchell
7f6dda58b5 refactor(divider): reduce CSS size
Reduces the size by removing private (`--_*`) custom properties. These are not needed since the component does not share styles across variants.

Size before: 523b / 308b gzip
Size after: 469b (-10%) / 292b gzip (-5%)

PiperOrigin-RevId: 600904594
2024-01-23 14:16:41 -08:00