Commit Graph

64 Commits

Author SHA1 Message Date
Elizabeth Mitchell
c35bad0c64 fix: rename internal <styles>.css.js to <styles>.css
We are changing the names of these files to reduce similarity with CSS modules and avoid clashing with tooling built around that. If you're importing `*/internal/styles.css.js`, swap to `*/internal/styles.js`.

PiperOrigin-RevId: 611265000
2024-02-28 16:20:22 -08:00
Elizabeth Mitchell
ec0a8ebf6e chore: use CSSResultOrNative instead of CSSResult for static styles
PiperOrigin-RevId: 609760445
2024-02-23 10:01:56 -08:00
Elizabeth Mitchell
ce41b7bfb3 fix: use explicit CSSResult[] types for static styles
PiperOrigin-RevId: 609494809
2024-02-22 14:15:11 -08:00
Jan Kuehle
4b4c373a6b chore: use import and export types
PiperOrigin-RevId: 599338980
2024-01-17 17:39:46 -08:00
Elizabeth Mitchell
1e8067bca7 test: add classes to shared template props
This makes it easier to add classes in a render method. Also updates the TemplateBuilder type to not require a Harness (ex: card does not need one)

PiperOrigin-RevId: 588110635
2023-12-05 10:11:56 -08:00
Elliott Marquez
a5a40b6dd3 feat(select): match menu width to select and introduce clamp-menu-width
fixes #5112
fixes #5133

upon opening the select, the menu with calculate the width of the select and set the min-width of the corresponding menu to match. If the user has an item with a really long headline, then clap-menu-width will clamp the max-width of the menu to that of the select.

PiperOrigin-RevId: 587862332
2023-12-04 15:36:27 -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
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elliott Marquez
2e728022d7 test: fix firefox 118 css transform for tests and bump to ff118
PiperOrigin-RevId: 571464389
2023-10-06 16:40:43 -07:00
Elizabeth Mitchell
d7b40fbafd chore(radio): simplify hcm styles
PiperOrigin-RevId: 569570652
2023-09-29 13:12:20 -07:00
Elliott Marquez
99918a0b88 chore(radio): simplify hcm styles
PiperOrigin-RevId: 569372050
2023-09-28 20:53:40 -07:00
Elizabeth Mitchell
50037a1338 chore(radio): simplify hcm styles
PiperOrigin-RevId: 569317421
2023-09-28 16:10:50 -07:00
Elizabeth Mitchell
4ad2336b87 feat(select): add required and form association
Fixes #4903

PiperOrigin-RevId: 565260839
2023-09-13 22:45:10 -07:00
Elizabeth Mitchell
01a99a5cc3 fix(testing): remove font shorthand tokens
PiperOrigin-RevId: 563188450
2023-09-06 12:50:33 -07:00
Elizabeth Mitchell
327eeafbf9 fix(testing): harness not applying :active to parents
PiperOrigin-RevId: 559585226
2023-08-23 17:03:08 -07:00
Elizabeth Mitchell
cdd9b264cb feat(color): add color folder for md-sys-color theming APIs
PiperOrigin-RevId: 559455085
2023-08-23 09:40:28 -07:00
Elizabeth Mitchell
a5283936fe revert: feat(color): add color folder for md-sys-color theming APIs
PiperOrigin-RevId: 559268365
2023-08-22 17:22:17 -07:00
Elizabeth Mitchell
87af9aa130 feat(color): add color folder for md-sys-color theming APIs
PiperOrigin-RevId: 559146252
2023-08-22 10:07:55 -07:00
Elizabeth Mitchell
0e492ade43 chore: remove sass theme utilities
PiperOrigin-RevId: 556915539
2023-08-14 14:39:19 -07:00
Andrew Jakubowicz
6ec3f06429 fix!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/<component>/lib` to `@material/web/<component>/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550633216
2023-07-24 12:02:59 -07:00
Elizabeth Mitchell
4cf084faf0 test(chips): fix firefox not supporting :has
PiperOrigin-RevId: 542313215
2023-06-21 11:25:37 -07:00
Elizabeth Mitchell
b1172d8470 fix(testing): use sys-color-* theming for dark mode tests
PiperOrigin-RevId: 540288116
2023-06-14 09:08:39 -07:00
Elizabeth Mitchell
0607d9ca53 chore: fix jscompiler issues
PiperOrigin-RevId: 539716693
2023-06-12 11:42:52 -07:00
Elizabeth Mitchell
ae70f1ea05 feat(slider): add full form association support
PiperOrigin-RevId: 537331425
2023-06-02 09:28:31 -07:00
Elizabeth Mitchell
a2bb8458d2 chore(sass): move to internal
PiperOrigin-RevId: 536458468
2023-05-30 11:23:00 -07:00
Elizabeth Mitchell
a2a6ff442c chore: fix typos
PiperOrigin-RevId: 536443522
2023-05-30 10:34:25 -07:00
Elizabeth Mitchell
a61f79ceb2 feat(checkbox): add full form association support
PiperOrigin-RevId: 532621912
2023-05-16 17:29:19 -07:00
Elizabeth Mitchell
43478f01c4 chore(testing): remove unused code
PiperOrigin-RevId: 531234392
2023-05-11 10:04:50 -07:00
Material Web Team
04d3496a71 fix(testing): don't fire focus events twice
PiperOrigin-RevId: 527701737
2023-04-27 15:32:16 -07:00
Elizabeth Mitchell
e12a7f33da chore: remove internal SSR annotations
PiperOrigin-RevId: 526679441
2023-04-24 10:12:10 -07:00
Copybara-Service
5aa1083441 Merge pull request #4111 from MrHBS:patch-1
PiperOrigin-RevId: 525483084
2023-04-19 10:19:40 -07:00
Material Web Team
6f094228de chore(testing): remove negative lookbehind regex
PiperOrigin-RevId: 525181043
2023-04-18 10:14:33 -07:00
Material Web Team
5553da3a8b fix(testing): remove unnecessary type def
PiperOrigin-RevId: 524974068
2023-04-17 16:02:10 -07:00
Daniel Freedman
9ce10bc100 chore(all): remove unnecessary property typing for strings
PiperOrigin-RevId: 523201301
2023-04-10 13:43:10 -07:00
Elizabeth Mitchell
7368e2a2e2 fix: complete tonal surface update
PiperOrigin-RevId: 522245682
2023-04-05 22:14:39 -07:00
Elizabeth Mitchell
988ad97d8c chore(testing): update test table background
PiperOrigin-RevId: 521816787
2023-04-04 11:20:46 -07:00
Elizabeth Mitchell
2ca34df894 chore(testing): refactor test table styles
PiperOrigin-RevId: 521577906
2023-04-03 15:22:40 -07:00
HBS
80330ea055
Update environment.ts
I believe this should work too, right @asyncLiz ?
2023-04-01 23:27:30 +03:00
Elizabeth Mitchell
715c5927a7 chore(sass): remove elevation resolvers
PiperOrigin-RevId: 518051579
2023-03-20 12:57:55 -07:00
Elizabeth Mitchell
618a505f57 fix(testing): token tests not working in Safari Chrome
PiperOrigin-RevId: 517206640
2023-03-16 13:10:05 -07:00
Daniel Freedman
43ce8c1d31 fix(testing): remove header-cell-text-tracking
PiperOrigin-RevId: 511244427
2023-02-21 10:44:27 -08:00
Elizabeth Mitchell
90960edf90 chore(ripple): update tests to use harness
PiperOrigin-RevId: 511240295
2023-02-21 10:30:45 -08:00
Material Web Team
f0f5ae57ab feat(slider): adds slider element
PiperOrigin-RevId: 510521193
2023-02-17 14:22:32 -08:00
Daniel Freedman
20464014bb fix(testing): convert test-table to use -type tokens
Keep `header-cell-text-tracking` for now, but set it to `0` or `unset` in each component as converted to use `-type` tokens directly.

PiperOrigin-RevId: 509882750
2023-02-15 11:06:49 -08:00
Elizabeth Mitchell
6c2aef6901 chore(all): add keep-sorted comments to Sass imports
PiperOrigin-RevId: 509583504
2023-02-14 11:10:23 -08:00
Material Web Team
3f6070ea31 chore(testing): Adds submitForm to testing harness. This submits the element's associated form if one exists and returns the submitted FormData object.
* updates form_controller tests.
* updates switch tests.
* adds form submission tests to text field.

PiperOrigin-RevId: 495992202
2022-12-16 17:01:56 -08:00
Elizabeth Mitchell
eedb7f5d3c chore: replace * selector with :host
PiperOrigin-RevId: 493992896
2022-12-08 14:15:19 -08:00
Material Web Team
0ae1cccb8b Unblock TS4.8 upgrade.
PiperOrigin-RevId: 493982496
2022-12-08 13:36:27 -08:00
Alexander Marks
933cb14ac8 chore: Comment-out jasmine import statements for external compatibility
PiperOrigin-RevId: 491970248
2022-11-30 11:18:44 -08:00
Elizabeth Mitchell
8606ceae19 chore(testing): update test table to latest tokens
PiperOrigin-RevId: 491502341
2022-11-28 19:22:44 -08:00