29 Commits

Author SHA1 Message Date
Elizabeth Mitchell
55b4650063 fix(tokens)!: tokens.md-comp-*-values() include custom properties by default
BREAKING CHANGE: Sass component tokens, such as `tokens.md-comp-checkbox-values()`, return `var(--md-<component>, <value>)` instead of just the CSS value. Use `$exclude-custom-properties: true` to remove them.

PiperOrigin-RevId: 652550625
2024-07-15 11:43:52 -07:00
Elizabeth Mitchell
5df9410e60 fix!: aria-labels announcing twice with "group" on components
BREAKING CHANGE: `querySelector` for `[role]` and `[aria-*]` attributes may no longer work. See `@material/web/migrations/v2/README.md` and `@material/web/migrations/v2/query-selector-aria.ts`.

Browser/SR test results (go/mwc-double-aria-test-results)
  -  VoiceOver on Chrome
  -  VoiceOver on iOS Safari
  -  TalkBack on Chrome
  -  ChromeVox on Chrome
  -  NVDA on Chrome
  -  NVDA on Firefox
  -  JAWS on Chrome
  -  JAWS on Firefox
  (Optional)
  -  VoiceOver on Safari
  -  VoiceOver on Firefox

PiperOrigin-RevId: 648859827
2024-07-02 15:22:12 -07:00
Copybara-Service
2613de471b Merge pull request #5352 from datvm:linear-progress-buffer
PiperOrigin-RevId: 609528198
2024-02-22 15:57:48 -08:00
Luke Vo
c7e26b5e93 Added back the buffer check vs. max value 2024-02-21 09:09:31 +07:00
Luke Vo
2512f55c1d Removed linear progress buffer clamping 2024-02-17 11:54:59 +07:00
Luke Vo
a8a9d56581 Buffer default value is now 0 and added some code cleanup. 2024-02-15 17:28:38 +07: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
Elizabeth Mitchell
84536d7416 chore: update components to use custom properties from tokens
PiperOrigin-RevId: 601597083
2024-01-25 16:13:41 -08:00
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
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
christophe-g
f0dab482fd chore(progress): use ternary operator + nothing instead of when 2023-12-18 21:26:00 +01: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
Luke Vo
075119c98f fix: Circular progress isn't circular in flex column display 2023-11-03 12:50:37 -05:00
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -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
Luke Vo
271d1e86be
Update progress/internal/linear-progress.ts
Co-authored-by: Andrew Jakubowicz <spyr1014@gmail.com>
2023-10-23 16:01:04 -05:00
Luke Vo
bbcc3dc07d corrected buffer value description in code doc 2023-10-23 15:53:08 -05:00
Elizabeth Mitchell
a450e4288c fix(progress): allow linear progress to fill flex containers
Originally was min-block-size and got changed to width instead of min-width.

Fixes #5042

PiperOrigin-RevId: 575915111
2023-10-23 13:37:41 -07:00
Andrew Jakubowicz
70bfea8738 fix(linearprogress): linear progress buffer dots now visible in HCM
PiperOrigin-RevId: 565173622
2023-09-13 15:09:50 -07:00
Andrew Jakubowicz
c864d3b638 fix(circularprogress)!: make default width 4px
PiperOrigin-RevId: 562924358
2023-09-05 16:24:08 -07:00
Elizabeth Mitchell
59c44fc2f9 fix(tokens): rename token override files
BREAKING CHANGE: Change "radio-button" and "progress-indicator" Sass token APIs to "radio" and "progress". This matches the tag names of their components.

PiperOrigin-RevId: 560184741
2023-08-25 13:45:10 -07:00
Elizabeth Mitchell
7d412a3b56 chore(progress): allow setting border-radius on linear progress
PiperOrigin-RevId: 558173219
2023-08-18 09:50:52 -07:00
Elizabeth Mitchell
d06f29806a chore(progress): reduce linear progress rtl complexity
PiperOrigin-RevId: 558041659
2023-08-17 23:07:17 -07:00
Elizabeth Mitchell
f39da54bc5 fix(progress): incorrect HCM colors
PiperOrigin-RevId: 557594392
2023-08-16 13:59:14 -07:00
Elizabeth Mitchell
07d77da034 chore(fab): remove ResizeObserver
PiperOrigin-RevId: 557552908
2023-08-16 11:38:30 -07:00
Elizabeth Mitchell
6a84fbeb07 chore: remove "screen" from media queries
PiperOrigin-RevId: 557511198
2023-08-16 09:30:08 -07:00
Elizabeth Mitchell
0510496e60 chore: avoid this in static context
PiperOrigin-RevId: 554933524
2023-08-08 14:00:25 -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