Commit Graph

50 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
Elizabeth Mitchell
5e40a1bcec chore: create shape logical tokens in Sass component token files
Adds `@material/web/tokens/internal/shape` to take a shape token and create 4 logical tokens from its value.

All components' logical shape tokens are now generated by the token files themselves, rather than added in each component's styles.

PiperOrigin-RevId: 601783846
2024-01-26 09:13:58 -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
Elliott Marquez
2adcb1479a docs: document events in jsdoc
PiperOrigin-RevId: 581041601
2023-11-09 15:25:21 -08:00
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elliott Marquez
f576b60aec fix(textfield,focus,ripple): fix textfield SSR
PiperOrigin-RevId: 566863561
2023-09-19 23:57:20 -07:00
Material Web Team
556e6f95e4 chore: fix closure compiler issues
PiperOrigin-RevId: 564867173
2023-09-12 16:30:19 -07:00
Elizabeth Mitchell
2295f12e71 fix: add aria-hidden="true" to ripple, focus ring, and elevation
PiperOrigin-RevId: 562075778
2023-09-01 16:33:32 -07:00
Elizabeth Mitchell
1e7aff50cf feat(focus,ripple): allow setting element.control = elementRef
Why? Makes it easier in lit to attach elements in bindings

```html
<md-ripple .control=${this}>
```

This is needed to support radio, which needs to make the host element interactive.

PiperOrigin-RevId: 559899531
2023-08-24 16:09:25 -07:00
Elliott Marquez
fa63178238 refactor(menu): remove :has selectors
PiperOrigin-RevId: 552615347
2023-07-31 15:54:20 -07:00
Elizabeth Mitchell
1fa5cf3485 fix(focus): allow --md-focus-ring-* cascading again
PiperOrigin-RevId: 552613931
2023-07-31 15:48:53 -07:00
Elliott Marquez
86ccec3e7e build: use firebase for hosting and remove url prefixes 2023-07-27 09:17:27 -07:00
Elizabeth Mitchell
d49f9b89e4 fix(focus)!: rename import to md-focus-ring.ts
BREAKING CHANGE: Change `@material/web/focus/focus-ring.js` to `@material/web/focus/md-focus-ring.js`.

PiperOrigin-RevId: 550608428
2023-07-24 10:43:31 -07:00
Andrew Jakubowicz
77110d7c8e fix(focus)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/focus/lib` to `@material/web/focus/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550581980
2023-07-24 09:18:22 -07:00
Elizabeth Mitchell
f7eff48c66 fix(focus)!: move --md-focus-ring tokens to host
BREAKING CHANGE: Set `--md-focus-ring-*` tokens directly on `<md-focus-ring>` elements. Focus rings are exposed with `::part(focus-ring)`.

PiperOrigin-RevId: 549114124
2023-07-18 14:36:12 -07:00
Elizabeth Mitchell
b9daa95164 chore(controller): move to internal
PiperOrigin-RevId: 536574896
2023-05-30 19:43:02 -07:00
Elizabeth Mitchell
fbd680a9fe fix(focus): split attachable logic into separate controller
PiperOrigin-RevId: 535405902
2023-05-25 15:23:08 -07:00
Elizabeth Mitchell
07d430bd02 docs(focus): add missing jsdoc for inward
PiperOrigin-RevId: 535281865
2023-05-25 09:25:56 -07:00
Elizabeth Mitchell
26d69c271e fix(focus)!: corrected outward/inward animations
BREAKING CHANGE: inward focus rings must be specified with `inward` rather than a negative offset.

PiperOrigin-RevId: 534552625
2023-05-23 14:08:36 -07:00
Elliott Marquez
dc49e0b518 docs: update playground urls to match new base-URI
PiperOrigin-RevId: 531322264
2023-05-11 15:24:11 -07:00
Elliott Marquez
5f80c096e0 refactor: remove extraneous file extensions
PiperOrigin-RevId: 531005525
2023-05-10 14:26:01 -07:00
Elliott Marquez
1cade43ccf refactor: remove extraneous file extensions
PiperOrigin-RevId: 530993820
2023-05-10 14:04:53 -07:00
Elizabeth Mitchell
796ce8c68f chore: remove strong focus
PiperOrigin-RevId: 528569676
2023-05-01 14:07:42 -07:00
Elizabeth Mitchell
f83db369c2 fix(focus): control not working when for reflects as empty
PiperOrigin-RevId: 527926302
2023-04-28 10:42:12 -07:00
Elizabeth Mitchell
34d8db09aa feat(focus): improve usability
PiperOrigin-RevId: 527611914
2023-04-27 10:11:10 -07:00
Elizabeth Mitchell
5934de0603 fix(focus): update focus-ring tokens
PiperOrigin-RevId: 527319619
2023-04-26 11:13:00 -07:00
Elizabeth Mitchell
e12a7f33da chore: remove internal SSR annotations
PiperOrigin-RevId: 526679441
2023-04-24 10:12:10 -07:00
Elliott Marquez
5e1fe1ccc7 fix(ssr): try to remove event listener calls on server
PiperOrigin-RevId: 525534289
2023-04-19 13:24:58 -07:00
Material Web Team
d7fdfda162 feat(focus): export the keydown handler
PiperOrigin-RevId: 518730680
2023-03-22 18:58:29 -07:00
Daniel Freedman
85232d5916 feat(focus): implement focus ring animation
PiperOrigin-RevId: 518709745
2023-03-22 16:56:09 -07:00
Daniel Freedman
61ff27910e fix(focus)!: refactor focus ring to better match component shape
- Focus ring now adds offset and width to look spec correct
- Replace `offset-vertical` and `offset-horizontal` tokens with a single `offset` token.

PiperOrigin-RevId: 516361036
2023-03-13 16:55:26 -07:00
Elizabeth Mitchell
6c2aef6901 chore(all): add keep-sorted comments to Sass imports
PiperOrigin-RevId: 509583504
2023-02-14 11:10:23 -08:00
Daniel Freedman
44a8d74f56 fix(all)!: use shape.resolve-tokens and remove shape.resolve-theme
PiperOrigin-RevId: 509284550
2023-02-13 11:26:55 -08:00
Daniel Freedman
f3383cd740 refactor(focusring): Simplify focus ring to just use host element
PiperOrigin-RevId: 500837060
2023-01-09 16:31:10 -08:00
Material Web Team
f73c097141 Document focus-ring
PiperOrigin-RevId: 495402514
2022-12-14 13:32:05 -08:00
Elizabeth Mitchell
eedb7f5d3c chore: replace * selector with :host
PiperOrigin-RevId: 493992896
2022-12-08 14:15:19 -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
30f5e44e0c chore: update tokens
PiperOrigin-RevId: 491753341
2022-11-29 15:31:06 -08:00
Elizabeth Mitchell
bff01dadf7 chore(tokens): update to v0.144
PiperOrigin-RevId: 491464625
2022-11-28 15:53:25 -08:00
Daniel Freedman
601c331d37 fix(focus): Update focus ring to new design
PiperOrigin-RevId: 487571074
2022-11-10 10:11:40 -08:00
Elizabeth Mitchell
a9da9bbf5e chore(focus): merge static/theme-styles
PiperOrigin-RevId: 482832904
2022-10-21 10:44:33 -07:00
Elizabeth Mitchell
ce8b949587 chore(focus): update to use local custom properties
PiperOrigin-RevId: 482830829
2022-10-21 10:37:34 -07:00
Elizabeth Mitchell
9ef8ce4a80 chore(focus): flatten static/theme-styles
PiperOrigin-RevId: 482828281
2022-10-21 10:27:03 -07:00
Elizabeth Mitchell
73ca8ae0eb chore: use relative paths
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00
Material Web Team
c47f8004ac feat: add _focus-ring.scss partial to expose theming the focus ring
PiperOrigin-RevId: 471045097
2022-08-30 11:27:32 -07:00
Alexander Marks
30c95aeee1 chore: add ".js" extensions to import statements.
In particular, this allows external build tools like Rollup and @web/dev-server to understand imports of Lit, which is configured to require the ".js" extension via its export conditions (so that Lit import maps can remain minimal).

PiperOrigin-RevId: 469772992
2022-08-24 11:01:21 -07:00
Elizabeth Mitchell
2e04eb07e6 chore: remove screenshots
PiperOrigin-RevId: 456350749
2022-06-21 14:26:21 -07:00
Material Web Team
41d41cc278 chore: update repository for Material 3
PiperOrigin-RevId: 455635969
2022-06-17 16:42:04 +00:00