Commit Graph

4696 Commits

Author SHA1 Message Date
Luke Vo
e4b8ef521f Added null check for buffer (due to possibility of attribute removal) 2023-12-27 20:32:02 -06:00
Luke Vo
8fa444c986 fix(progress): progress buffer defaults to negative. 2023-12-27 16:26:06 -06:00
Elizabeth Mitchell
9973b90981 fix(textfield): counter showing when max length is 0 or removed
Fixes #4998

This also fixes an error being thrown in text field's validator when minlength/maxlength change to out of bounds if they're not set in the correct order.

PiperOrigin-RevId: 594013553
2023-12-27 08:13:58 -08:00
Elizabeth Mitchell
4ae9db6c67 fix(dialog): text is now selectable
Fixes #5145

Added some notes on Material dialog focusing. Normally the dialog should *not* be focused, so you may wonder why we care about delegating focus at all. It's because:

1. We don't have focus trapping yet
2. We need to handle what happens when there isn't a focusable child in the dialog, even though that's against spec.

PiperOrigin-RevId: 594013328
2023-12-27 08:12:29 -08:00
Copybara-Service
689f9459c2 Merge pull request #5311 from christophe-g:cg-remove-unecessary-progress-animation
PiperOrigin-RevId: 594013260
2023-12-27 08:11:01 -08:00
Elizabeth Mitchell
c9360e2310 chore: remove commitlint.config.js from build files
PiperOrigin-RevId: 592670865
2023-12-20 15:20:00 -08:00
Elizabeth Mitchell
3dcfe65620 chore: don't add reviewers to size update PR and try new branch
PiperOrigin-RevId: 592656210
2023-12-20 14:18:29 -08:00
Elizabeth Mitchell
be3dc6f677 fix(dialog): immediate escape key not firing cancel event in Chrome 120
Fixes #5313

PiperOrigin-RevId: 592651305
2023-12-20 13:59:06 -08:00
Elliott Marquez
8912019b90 feat(select): add keyboard support for arrow end and home
PiperOrigin-RevId: 592643729
2023-12-20 13:29:14 -08:00
Elizabeth Mitchell
9c5cff8f90 fix(labs): card content not clickable with outline fix
Fixes #5312

PiperOrigin-RevId: 592594621
2023-12-20 10:20:39 -08:00
Elliott Marquez
50a9ffae46 feat(select): add menuAlign to allow end-aligning the select menu
PiperOrigin-RevId: 592384480
2023-12-19 17:10:25 -08:00
Elliott Marquez
4bb9418a52 feat(select): support width fit-content
width: fit-content will resize the select to be the width of its text content + icons. We need to add a wrapper to the menu that is width: 0px so that the width of the menu does not affect the size of the host.
PiperOrigin-RevId: 592382035
2023-12-19 16:59:37 -08:00
Elizabeth Mitchell
d06a3e781e chore: add event hooks for default prevention behavior
PiperOrigin-RevId: 592375327
2023-12-19 16:29:52 -08:00
Elizabeth Mitchell
eca1357f1a fix: rename and move internal/controller/events
Split `internal/controller/events` into `internal/events/redispatch-event` and `internal/events/form-label-activation`

PiperOrigin-RevId: 592350371
2023-12-19 14:49:35 -08:00
Elliott Marquez
57168f6a95 fix(slider): nested dir attributes do not break on chrome 120+
fixes the case where there is a `dir=rtl` grandparent and a `dir=ltr` parent to slider.

PiperOrigin-RevId: 592086653
2023-12-18 20:18:58 -08:00
Elliott Marquez
422f1050ff docs(textfield): add jsdoc several properties
Added jsdoc to properties on textfield itself. I don't think we can count the bug closed until the api docs bot is fixed so that we can see what is exposed or not via the new mixins.

PiperOrigin-RevId: 592071151
2023-12-18 18:52:49 -08:00
Material Web Team
edb3559a1c fix(select): expose SelectOption interface
PiperOrigin-RevId: 592022961
2023-12-18 15:14:41 -08:00
Elizabeth Mitchell
18bdabedd2 docs: fix broken progress indicator token links
PiperOrigin-RevId: 592021202
2023-12-18 15:09:16 -08:00
Elizabeth Mitchell
2bb480fb82 chore: move events out of controller folder
PiperOrigin-RevId: 592021123
2023-12-18 15:07:51 -08:00
christophe-g
f0dab482fd chore(progress): use ternary operator + nothing instead of when 2023-12-18 21:26:00 +01:00
Elizabeth Mitchell
3f46ab6c14 docs: add contributing guide
Fixes #246

PiperOrigin-RevId: 591967524
2023-12-18 11:52:14 -08:00
christophe-g
4de5e74b5c fix(progress): prevent unnecessary animation to run when not visible
Progress has an infinite animation on `<div class="dots">`. `.dots` is
only visible when `value` < `max` or `buffer` < `max`. But the animation
runs in any case.
2023-12-18 11:53:52 +01:00
Elizabeth Mitchell
839667dcf6 perf(ripple): don't process events in high contrast mode
PiperOrigin-RevId: 591368699
2023-12-15 15:01:49 -08:00
Elliott Marquez
cc8d02c847 docs: expose component size page and make bold look not fuzzy
PiperOrigin-RevId: 591365088
2023-12-15 14:48:19 -08:00
Elizabeth Mitchell
ddf1fb0c61 fix(tabs): --md-elevation-level no longer leaks into tabs
Fixes #5137

PiperOrigin-RevId: 591357826
2023-12-15 14:19:15 -08:00
Copybara-Service
80edf15920 Merge pull request #5229 from aarondrabeck:md-menu-color-fix
PiperOrigin-RevId: 591297433
2023-12-15 10:37:44 -08:00
Elizabeth Mitchell
926edfb367 fix(textfield): remove Firefox high contrast mode background on linux
PiperOrigin-RevId: 591065806
2023-12-14 15:16:41 -08:00
Elizabeth Mitchell
b0eea7f59d chore: add commitlint config for scopes
PiperOrigin-RevId: 591061701
2023-12-14 15:02:12 -08:00
Copybara-Service
4095c06e5a Merge pull request #5294 from material-components:auto-update-size
PiperOrigin-RevId: 591043696
2023-12-14 13:57:53 -08:00
lit-robot
de692ecad5 chore: update sizes 2023-12-14 21:40:19 +00:00
Elizabeth Mitchell
53ec44b4b8 fix(labs): add card support for high contrast mode
PiperOrigin-RevId: 591038474
2023-12-14 13:38:48 -08:00
Copybara-Service
6eb9fe670f Merge pull request #5285 from material-components:size
PiperOrigin-RevId: 591037361
2023-12-14 13:34:17 -08:00
Liz Mitchell
3638187e5f chore: add leading and trailing table pipes 2023-12-13 20:22:56 -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
f92eb0efe0 chore: add feature request template
PiperOrigin-RevId: 590796188
2023-12-13 20:18:26 -08:00
Copybara-Service
98ba0b9436 Merge pull request #5288 from material-components:release-please--branches--main--components--web
PiperOrigin-RevId: 590713647
2023-12-13 14:31:37 -08:00
release-please[bot]
79ef9f6f5d
chore: release 1.1.1 2023-12-13 22:22:57 +00:00
Liz Mitchell
ab042992ac fix: formAssociated disabled attribute not working 2023-12-13 14:21:57 -08:00
Elizabeth Mitchell
2234a1279f chore: fix formAssociated disabled attribute not working
There is out-of-sync state when lit's built-in accessor tries to reflect attributes alongside the getter and setter. Instead, the properties just read from attributes and requestUpdate is called when those attributes change.

PiperOrigin-RevId: 590710159
2023-12-13 14:17:48 -08:00
Copybara-Service
eaefb5040b Merge pull request #5094 from material-components:release-please--branches--main--components--web
PiperOrigin-RevId: 590708481
2023-12-13 14:12:10 -08:00
Liz Mitchell
5d8f453ba5 chore: remove trailing whitespace 2023-12-13 11:59:50 -08:00
Liz Mitchell
52d1ca59fc chore: add extra | to table row start for GitHub empty starting columns 2023-12-13 11:35:12 -08:00
Liz Mitchell
3749911d16 chore: add build dependecy to update-size 2023-12-13 11:27:32 -08:00
Liz Mitchell
381189da9b chore: add readme link to size and bot 2023-12-13 11:23:32 -08:00
Liz Mitchell
1d9a552dcf docs: add size tracking 2023-12-12 17:25:03 -08:00
Elizabeth Mitchell
79f7dd2470 chore(chips): move trailing icon aria-hidden
PiperOrigin-RevId: 590311910
2023-12-12 13:15:54 -08:00
Copybara-Service
8e75343bbd Merge pull request #5275 from material-components:stories-page
PiperOrigin-RevId: 590302109
2023-12-12 12:48:15 -08:00
release-please[bot]
40e63ec3ee
chore: release 1.1.0 2023-12-12 20:48:06 +00:00
Copybara-Service
27d3541910 Merge pull request #5263 from vdegenne:md-filter-chip-icons
PiperOrigin-RevId: 590301589
2023-12-12 12:46:32 -08:00
vdegenne
b44b90c826 feat(chip): trailing remove icon can now be customized 2023-12-12 09:46:50 +01:00