Elizabeth Mitchell
5bc15069d1
feat(button): add gradient support to container colors
...
This feature works by using the `background` shorthand instead of `background-color`. This property supports both CSS `<color>` and `<gradient>` types.
PiperOrigin-RevId: 751080245
2025-04-24 11:59:05 -07:00
Zack Elliott
48124ba09f
feat(button): add soft-disabled attribute for focusable disabled buttons
...
PiperOrigin-RevId: 651854744
2024-07-12 12:31:42 -07:00
Elliott Marquez
758e61581e
fix(button,fab,chips,labs): text-transform inherits through shadow root
...
PiperOrigin-RevId: 612948745
2024-03-05 13:24:40 -08:00
Elizabeth Mitchell
7cd657b83d
fix(button): height increases when label wraps
...
PiperOrigin-RevId: 582478806
2023-11-14 16:41:20 -08:00
Elizabeth Mitchell
5d964adcf9
fix(button): labels not truncating, add support for multiline with text-wrap: wrap
...
There's currently a bug where wrapping buttons do not increase their height. That will come later to reduce the scope on this change.
PiperOrigin-RevId: 581383771
2023-11-10 15:17:14 -08:00
Elizabeth Mitchell
96481566ae
refactor(button): move background content outside of inner button
...
Part of a series of changes to support text wrapping and host aria for button.
PiperOrigin-RevId: 581319862
2023-11-10 11:29:54 -08:00
Elizabeth Mitchell
8dcb3f62c7
fix(button): don't show overflowing labels
...
PiperOrigin-RevId: 580659287
2023-11-08 14:29:00 -08:00
Elizabeth Mitchell
5bb4a422de
fix(button): allow overriding padding and gap
...
More customization and necessary prep to move styles to host for host aria and text wrapping customization.
PiperOrigin-RevId: 580565272
2023-11-08 09:55:35 -08:00
Elizabeth Mitchell
18522381d8
fix(button): allow overriding min-width and user-select
...
PiperOrigin-RevId: 580324948
2023-11-07 15:50:07 -08:00
Elizabeth Mitchell
f08ecce357
chore(button): remove unused styles
...
PiperOrigin-RevId: 580031279
2023-11-06 19:59:25 -08:00
Elizabeth Mitchell
48d84f86ee
chore(button): remove BEM css class name style
...
Why? We don't use https://getbem.com/ styles anymore now that we have shadow dom.
Just cleanup to help with child changes.
PiperOrigin-RevId: 579980984
2023-11-06 15:50:24 -08:00
Elizabeth Mitchell
798f5ae179
fix(button): allow overriding cursor using CSS
...
Prep to move some styles to the host, which allows for better host styling, like setting padding and text wrapping. It will also support host aria by not relying on `<button>` pseudo selectors.
PiperOrigin-RevId: 579977848
2023-11-06 15:38:50 -08:00
Elizabeth Mitchell
8894c20c6b
fix(button): remove font shorthand tokens
...
BREAKING CHANGE: replace `label-text-type` tokens with `label-text-font`, `-size`, `-line-height`, and `-weight`
PiperOrigin-RevId: 563153211
2023-09-06 10:56:22 -07:00
Andrew Jakubowicz
b144227438
fix(button): incorrect HCM colors
...
PiperOrigin-RevId: 557601131
2023-08-16 14:21:48 -07:00
Elizabeth Mitchell
1f46179e83
feat(button): add touch target configs
...
PiperOrigin-RevId: 555666648
2023-08-10 14:57:37 -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
Andrew Jakubowicz
601ebb669c
fix(button)!: rename "lib" directory to "internal"
...
BREAKING CHANGE: Rename `@material/web/button/lib` to `@material/web/button/internal`. Prefer not using internal files.
PiperOrigin-RevId: 549999271
2023-07-21 11:20:19 -07:00