Commit Graph

28 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
b23e3218ee fix(icon): fix uncentered icons when using WCAG text spacing overrides
If you were using `font-size`, you may need to change it to `--md-icon-size` if icons shift.

PiperOrigin-RevId: 607096212
2024-02-14 13:55:54 -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
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
Thorsten Scherler
65baa1af64
[icon_size] drop fixed height and width
Signed-off-by: Thorsten Scherler <scherler@gmail.com>
2023-11-03 12:11:02 +01:00
Thorsten Scherler
2d1afaa793
[icon_size] fix expression
Signed-off-by: Thorsten Scherler <scherler@gmail.com>
2023-11-03 10:19:21 +01:00
Thorsten Scherler
8467d40bf1
[icon_size] add size to tokens
Signed-off-by: Thorsten Scherler <scherler@gmail.com>
2023-11-02 20:43:40 +01:00
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -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
53aab285e9 fix(icon): don't allow user text selection by default
PiperOrigin-RevId: 558041454
2023-08-17 23:04:58 -07:00
Elizabeth Mitchell
0e492ade43 chore: remove sass theme utilities
PiperOrigin-RevId: 556915539
2023-08-14 14:39:19 -07:00
Elliott Marquez
ff60a88843 refactor(icon)!: remove css custom props from icon and apply values directly on host
BREAKING CHANGE: Remove css custom properties from icon and prefer applying normal css properties on host except for font-family.

PiperOrigin-RevId: 553577562
2023-08-03 13:43:59 -07:00
Elliott Marquez
08d50e231d feat(icon): add aria-hidden true by default
PiperOrigin-RevId: 551024866
2023-07-25 16:07:11 -07:00
Andrew Jakubowicz
21b7becd7b fix(icon)!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/icon/lib` to `@material/web/icon/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550579714
2023-07-24 09:13:10 -07:00
Elliott Marquez
64242abbbd refactor(icon): remove span
PiperOrigin-RevId: 549763804
2023-07-20 15:52:46 -07:00
Elizabeth Mitchell
0607d9ca53 chore: fix jscompiler issues
PiperOrigin-RevId: 539716693
2023-06-12 11:42:52 -07:00
Elizabeth Mitchell
a2bb8458d2 chore(sass): move to internal
PiperOrigin-RevId: 536458468
2023-05-30 11:23:00 -07:00
Elizabeth Mitchell
e12a7f33da chore: remove internal SSR annotations
PiperOrigin-RevId: 526679441
2023-04-24 10:12:10 -07:00
Elizabeth Mitchell
2eb914e887 fix(icon): hide font ligature overflowing text
PiperOrigin-RevId: 524316180
2023-04-14 09:53:37 -07:00
Daniel Freedman
232982ef03 fix(icon,iconbutton,list)!: use material symbols for icons
- Material Symbols is recommended for M3
- Refactor list items to use md-icon directly

PiperOrigin-RevId: 511601359
2023-02-22 14:39:58 -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
Daniel Freedman
12c93641a5 fix(icon, iconbutton): Cleanup styling
- Remove duplicate md-ripple sizing in standard icon button
 - Tokens now have disabled outline color for outlined icon button, remove workaround
 - Use icon theming API
 - Also size `<img>` tags in `<md-icon>`

PiperOrigin-RevId: 500805749
2023-01-09 14:17:48 -08:00
Daniel Freedman
5a27f05cd7 fix(icon): Remove fixed left-to-right direction to fix RTL styling
PiperOrigin-RevId: 500760821
2023-01-09 11:12:06 -08:00
Daniel Freedman
0327283b7b feat(icon): Implement tokens for md-icon
Adds tokens for color, size, font-family, font-weight and font-variation-settings.

Slotted svg icons will also be sized and colored with the tokens.

PiperOrigin-RevId: 495716570
2022-12-15 15:46:19 -08: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
Material Web Team
b3ac1bde57 chore(icon): Move icon package to new directory.
PiperOrigin-RevId: 456248727
2022-06-21 07:02:04 -07:00