Commit Graph

4709 Commits

Author SHA1 Message Date
Copybara-Service
f97555b627 Merge pull request #5231 from vdegenne:textarea-wrap
PiperOrigin-RevId: 586436216
2023-11-29 13:24:14 -08:00
vdegenne
4fce487c81 fix(text-field): wrap text in textarea 2023-11-29 20:19:51 +01:00
Aaron Drabeck
063ac88a07 fix(menu): prevent default popover color from overriding menu surface 2023-11-29 10:47:07 -07:00
Elizabeth Mitchell
b5686ea4e0 feat(radio): add required constraint validation
Fixes #4316

PiperOrigin-RevId: 586045132
2023-11-28 11:15:20 -08:00
vdegenne
2dba006ddd fix(chip): disabled attribute prevents click event. 2023-11-28 10:24:28 +01:00
vdegenne
d501dddfd5 fix(chip): disabled attribute prevents click event. 2023-11-28 10:22:08 +01:00
Elizabeth Mitchell
33c1afece2 refactor(select): use shared validation mixins
PiperOrigin-RevId: 585751913
2023-11-27 13:56:46 -08:00
Copybara-Service
bedcd65886 Merge pull request #5215 from vdegenne:list-item-transparent-highlight
PiperOrigin-RevId: 585736156
2023-11-27 12:59:53 -08:00
vdegenne
4697407cff fix(list-item): hide headline overflow and fix width. 2023-11-27 21:24:35 +01:00
Elizabeth Mitchell
21432b349f chore(behaviors): add mixinOnReportValidity for text field validation styling
PiperOrigin-RevId: 585698467
2023-11-27 10:51:20 -08:00
vdegenne
cca0789826 fix(list-item): make tap highlight transparent 2023-11-23 09:56:38 +01:00
Copybara-Service
6be83b482e Merge pull request #5212 from vdegenne:segmented-button-transparent-highlight
PiperOrigin-RevId: 584665283
2023-11-22 10:31:37 -08:00
Copybara-Service
a7dc69f019 Merge pull request #5210 from vdegenne:fab-transparent-highlight
PiperOrigin-RevId: 584665022
2023-11-22 10:29:17 -08:00
Copybara-Service
df1539c1fe Merge pull request #5211 from vdegenne:chip-transparent-highlight
PiperOrigin-RevId: 584664879
2023-11-22 10:29:01 -08:00
vdegenne
e4728bd018 fix(segmented-button): make tap highlight transparent 2023-11-22 10:08:10 +01:00
vdegenne
c3bfbaaf4c fix(chip): make tap highlight transparent 2023-11-22 10:03:01 +01:00
vdegenne
4e8053d15d fix(fab): make tap highlight transparent 2023-11-22 09:56:38 +01:00
Elizabeth Mitchell
f7a66a8bbe refactor: add constraint validation mixin
This reduces the copy/paste of validation code. Constraint validation must be synchronous, so a `Validator` helps compute the validity and cache it since the validity must be checked when properties change.

Implemented in checkbox-like controls.

PiperOrigin-RevId: 584380464
2023-11-21 11:22:03 -08:00
Material Web Team
3d8c7ac7f3 fix(menu): declare popover property type on HTMLElement
Without it the popover property got renamed by closure.

PiperOrigin-RevId: 584184281
2023-11-20 18:53:26 -08:00
Elizabeth Mitchell
8eb1f30e6f refactor: add checkbox validator
Part of adding constraint validation mixins. Each component that participates in constraint validation has different rules and error messages for validating. The `Validator` gives `mixinConstraintValidation()` a way to compute and cache validation.

Other validators will be added later, such as `SelectValidator` and `RadioValidator`

PiperOrigin-RevId: 583508468
2023-11-17 15:59:38 -08:00
Elizabeth Mitchell
302d181914 chore: don't error nightly github action when no changes
PiperOrigin-RevId: 583489094
2023-11-17 14:35:03 -08:00
Elizabeth Mitchell
6a1fb388cb chore: bump package version before nightly publish
PiperOrigin-RevId: 582811093
2023-11-15 14:40:03 -08:00
Elizabeth Mitchell
91c1221cef fix: add @material/web@nightly publishes
Adds a workflow that runs daily at 3:21am if there have been new commits in the past 24 hours since the last run.

PiperOrigin-RevId: 582728131
2023-11-15 10:37:13 -08:00
Elizabeth Mitchell
5ce1ab815c docs: update freshness
PiperOrigin-RevId: 582496450
2023-11-14 17:59:45 -08:00
Elizabeth Mitchell
7cd657b83d fix(button): height increases when label wraps
PiperOrigin-RevId: 582478806
2023-11-14 16:41:20 -08:00
Material Web Team
bf8d3f6289 fix(menu): declare popover API types
Without it show/hide popover get renamed by closure.

PiperOrigin-RevId: 582471354
2023-11-14 16:12:59 -08:00
Copybara-Service
128abcb325 Merge pull request #5150 from scherler:icon_size
PiperOrigin-RevId: 582411939
2023-11-14 12:51:34 -08:00
Thorsten Scherler
b4c9b81eb3
[icon_size] fix code regarding feedback
Signed-off-by: Thorsten Scherler <scherler@gmail.com>
2023-11-14 13:27:55 +01:00
Copybara-Service
3e66c3ec4c Merge pull request #5184 from Staler2019:main
PiperOrigin-RevId: 582036076
2023-11-13 11:48:02 -08:00
Copybara-Service
709ac4afd9 Merge pull request #5187 from paleite:patch-1
PiperOrigin-RevId: 582032418
2023-11-13 11:37:15 -08:00
Patrick Eriksson
e1fb15bb35
Update text-field.md
Fix the URL to material-web.dev
2023-11-13 15:42:37 +01:00
Staler2019
257e9c6f6f
Fix #5182: dialog icon padding error 2023-11-11 18:59:52 +08:00
Elizabeth Mitchell
5d964adcf9 fix(button): labels not truncating, add support for multiline with text-wrap: wrap
There's currently a bug where wrapping buttons do not increase their height. That will come later to reduce the scope on this change.

PiperOrigin-RevId: 581383771
2023-11-10 15:17:14 -08:00
Elizabeth Mitchell
96481566ae refactor(button): move background content outside of inner button
Part of a series of changes to support text wrapping and host aria for button.

PiperOrigin-RevId: 581319862
2023-11-10 11:29:54 -08:00
Elliott Marquez
2adcb1479a docs: document events in jsdoc
PiperOrigin-RevId: 581041601
2023-11-09 15:25:21 -08:00
Elliott Marquez
5e0000a495 fix(docs): prepare docs generator for mixin version of lit analyzer
PiperOrigin-RevId: 581038415
2023-11-09 15:12:04 -08:00
Elizabeth Mitchell
710b87eb3a chore(button): remove lit static
Part of a chain of changes needed to support text wrapping and host aria

PiperOrigin-RevId: 581030820
2023-11-09 14:45:01 -08:00
Elliott Marquez
a2b32042bd fix(select): select menu render is over most stacking contexts with popover
Fixes #4812

This feature defaults to using the popover API for the underlying menu in select. If not available (FF and older versions of Safari and Chrome), defaults to using fixed.

PiperOrigin-RevId: 580666310
2023-11-08 14:50:19 -08:00
Elizabeth Mitchell
8dcb3f62c7 fix(button): don't show overflowing labels
PiperOrigin-RevId: 580659287
2023-11-08 14:29:00 -08: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
Elizabeth Mitchell
5bb4a422de fix(button): allow overriding padding and gap
More customization and necessary prep to move styles to host for host aria and text wrapping customization.

PiperOrigin-RevId: 580565272
2023-11-08 09:55:35 -08:00
Elizabeth Mitchell
18522381d8 fix(button): allow overriding min-width and user-select
PiperOrigin-RevId: 580324948
2023-11-07 15:50:07 -08:00
Elliott Marquez
2b591ca759 feat(menu): add document-level positioning
related #5120

PiperOrigin-RevId: 580293404
2023-11-07 14:04:00 -08:00
Elizabeth Mitchell
f08ecce357 chore(button): remove unused styles
PiperOrigin-RevId: 580031279
2023-11-06 19:59:25 -08:00
Copybara-Service
bddf0314c4 Merge pull request #5158 from datvm:fix-circular-progress-size
PiperOrigin-RevId: 580015596
2023-11-06 18:11:02 -08:00
Elizabeth Mitchell
48d84f86ee chore(button): remove BEM css class name style
Why? We don't use https://getbem.com/ styles anymore now that we have shadow dom.

Just cleanup to help with child changes.

PiperOrigin-RevId: 579980984
2023-11-06 15:50:24 -08:00
Elizabeth Mitchell
798f5ae179 fix(button): allow overriding cursor using CSS
Prep to move some styles to the host, which allows for better host styling, like setting padding and text wrapping. It will also support host aria by not relying on `<button>` pseudo selectors.

PiperOrigin-RevId: 579977848
2023-11-06 15:38:50 -08:00
Copybara-Service
7d7858090e Merge pull request #5163 from scherler:fix_typo
PiperOrigin-RevId: 579928304
2023-11-06 12:44:23 -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
Luke Vo
075119c98f fix: Circular progress isn't circular in flex column display 2023-11-03 12:50:37 -05:00