Commit Graph

45 Commits

Author SHA1 Message Date
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
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
Copybara-Service
2613de471b Merge pull request #5352 from datvm:linear-progress-buffer
PiperOrigin-RevId: 609528198
2024-02-22 15:57:48 -08:00
Elizabeth Mitchell
ce41b7bfb3 fix: use explicit CSSResult[] types for static styles
PiperOrigin-RevId: 609494809
2024-02-22 14:15:11 -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
9647f5e514 fix(iconbutton): rename selectedIcon slot to selected
BREAKING CHANGE: change `slot="selectedIcon"` to `slot="selected"` for toggle icon buttons.

PiperOrigin-RevId: 561740365
2023-08-31 13:14:41 -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
379aa6140d chore(progress): add linear progress demo aria
PiperOrigin-RevId: 557937995
2023-08-17 14:31:41 -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
Elizabeth Mitchell
cc26ef6c02 fix(button)!: rename <md-tonal-button> to <md-filled-tonal-button>
BREAKING CHANGE: Rename "md-tonal-button" elements, imports, and tokens to "md-filled-tonal-button"

PiperOrigin-RevId: 552600206
2023-07-31 14:57:34 -07:00
Elizabeth Mitchell
a117b06b7b fix(iconbutton)!: rename <md-standard-icon-button> to <md-icon-button>
PiperOrigin-RevId: 552545415
2023-07-31 11:37:56 -07:00
Elizabeth Mitchell
2329d2b419 fix(button)!: rename spacing tokens
BREAKING CHANGE: Rename `--md-<button>-spacing-<token>` to `--md-<button>-<token>-space`. Rename `--md-<button>-with-icon-*` to `--md-<button>-with-leading-icon-*`.

PiperOrigin-RevId: 552323014
2023-07-30 17:18:48 -07:00
Elliott Marquez
86ccec3e7e build: use firebase for hosting and remove url prefixes 2023-07-27 09:17:27 -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
c1aac1174c fix(progress): update circular demos
PiperOrigin-RevId: 549675905
2023-07-20 10:42:43 -07:00
Elizabeth Mitchell
02a509b480 feat(progress): add max property
PiperOrigin-RevId: 549673538
2023-07-20 10:34:59 -07:00
Elizabeth Mitchell
a2b4f6152d fix(progress)!: rename progress property to value
PiperOrigin-RevId: 549471839
2023-07-19 17:31:45 -07:00
Elliott Marquez
7760021f38 refactor(linear-progress): remove will-change from linear progress
will-change has only really introduced maintenance and perf problems into material wiz library. We should avoid will-change before this becomes a real problem for us too.

PiperOrigin-RevId: 549468935
2023-07-19 17:17:19 -07:00
Elizabeth Mitchell
0f7e881ee7 fix(progress): remove circular progress will-change CSS
PiperOrigin-RevId: 549370355
2023-07-19 11:14:04 -07:00
Elizabeth Mitchell
75058ca2be fix(progress): add shared class
PiperOrigin-RevId: 549369009
2023-07-19 11:11:27 -07:00
Elizabeth Mitchell
aea4d5e4fd fix(progress)!: remove circular progress slots
PiperOrigin-RevId: 549190658
2023-07-18 20:57:24 -07:00
Andrew Jakubowicz
15df1d5f1a fix(progress): squash linearprogress and circular progress into progress
This changes the following imports from:

```js
import '@material/web/circularprogress/circular-progress.js';
import '@material/web/linearprogress/linear-progress.js';
```

to

```js
import '@material/web/progress/circular-progress.js';
import '@material/web/progress/linear-progress.js';
```

PiperOrigin-RevId: 547860610
2023-07-13 11:18:24 -07:00