Commit Graph

11 Commits

Author SHA1 Message Date
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
feff7214a7 feat(tokens): add component custom properties to Sass values
These are excluded by default, but will be enabled by default in 2.0.

Example: `tokens.md-comp-checkbox-values($exclude-custom-properties: false)`
PiperOrigin-RevId: 601596085
2024-01-25 16:10:32 -08:00
Elizabeth Mitchell
a3a05e4179 chore(tokens): rename tokens/internal/values tokens/internal/validate
The naming is a bit backwards. The file is about validation and the function is for the token values, not a file just for token values.

PiperOrigin-RevId: 599207580
2024-01-17 09:59:53 -08:00
Elizabeth Mitchell
b986b1eb7c fix(tokens): moved '_values.scss' to 'internal/_values.scss'
Why? To help clarify that this isn't intended to be a public API, and to better organize future internal-only token files.

PiperOrigin-RevId: 599203361
2024-01-17 09:45:26 -08:00
Elizabeth Mitchell
cfd053c397 fix(tokens): update components to v0.192
PiperOrigin-RevId: 565714251
2023-09-15 10:27:07 -07:00
Elizabeth Mitchell
0c5a2a2886 fix(text-field,select): remove font shorthand tokens
BREAKING CHANGE: replace `*-type` font tokens with `-font`, `-size`, `-line-height`, and `-weight`

PiperOrigin-RevId: 563160975
2023-09-06 11:18:59 -07:00
Elizabeth Mitchell
bbb784012a fix(textfield): focus indicator and outline are 3px
PiperOrigin-RevId: 557292273
2023-08-15 16:49:10 -07:00
Elizabeth Mitchell
86aba33dea fix(textfield)!: rename container-padding-vertical tokens
BREAKING CHANGE: Rename `--md-*-field-container-padding-vertical` to `--md-*-field-top-space` and `--md-*-field-bottom-space`. Rename `--md-filled-*-field-with-label-container-padding-vertical` to `--md-filled-*-field-with-label-top-space` and `--md-filled-*-field-with-label-bottom-space`

PiperOrigin-RevId: 547278912
2023-07-11 13:21:57 -07:00
Elizabeth Mitchell
447886da2e fix(textfield)!: rename container-padding-horizontal token
BREAKING CHANGE: Rename `--md-*-field-container-padding-horizontal` to `--md-*-field-leading-space` and `--md-*-field-trailing-space`

PiperOrigin-RevId: 547222914
2023-07-11 10:08:03 -07:00
Elizabeth Mitchell
4f37b4474f fix(textfield)!: rename supporting-text-padding tokens
BREAKING CHANGE: Rename `--md-*-field-supporting-text-padding` to `--md-*-field-supporting-text-leading-space` and `--md-*-field-supporting-text-trailing-space`. Rename `--md-*-field-supporting-text-padding-top` to `--md-*-field-supporting-text-top-space`

PiperOrigin-RevId: 547218344
2023-07-11 09:52:25 -07:00
Elizabeth Mitchell
b9e3afc2b7 chore(textfield): remove shape resolver
PiperOrigin-RevId: 528529823
2023-05-01 11:40:17 -07:00