Material Web Team
cb55c90743
Improves how button handles activation clicks. Previously click()
was overridden and this did not support directly dispatched click events. Now click events are explicitly handled if the event is targeted at the element itself. Since click()
dispatches a click event, it no longer needs to be overridden.
...
PiperOrigin-RevId: 495694515
2022-12-15 14:17:03 -08:00
Daniel Freedman
cf0e6b41c6
chore(button): Normalize lazy ripple with other components
...
PiperOrigin-RevId: 495429247
2022-12-14 15:11:11 -08:00
Material Web Team
74bda6e11c
Document md-button
...
PiperOrigin-RevId: 495160072
2022-12-13 16:45:36 -08:00
Elizabeth Mitchell
545c2eb494
fix(button): use new elevation component
...
PiperOrigin-RevId: 495085105
2022-12-13 11:51:20 -08:00
Elizabeth Mitchell
a5850dccba
chore(ripple): remove negative z-index
...
PiperOrigin-RevId: 494293324
2022-12-09 16:45:45 -08:00
Elizabeth Mitchell
eedb7f5d3c
chore: replace * selector with :host
...
PiperOrigin-RevId: 493992896
2022-12-08 14:15:19 -08:00
Elizabeth Mitchell
89eee57074
chore(elevation): branch elevation styles
...
PiperOrigin-RevId: 493625319
2022-12-07 09:27:08 -08:00
Daniel Freedman
ca88cd765e
chore(button): Create ripple lazily for buttons
...
PiperOrigin-RevId: 493350615
2022-12-06 10:44:09 -08:00
Daniel Freedman
1f2f26caad
chore(button): Use ripple directive instead of ActionElement
...
PiperOrigin-RevId: 492334221
2022-12-01 16:53:30 -08:00
Elizabeth Mitchell
3724687b17
chore(button): update tokens
...
PiperOrigin-RevId: 491730790
2022-11-29 14:05:35 -08:00
Elizabeth Mitchell
bff01dadf7
chore(tokens): update to v0.144
...
PiperOrigin-RevId: 491464625
2022-11-28 15:53:25 -08:00
Daniel Freedman
e8ba229dd0
fix(button): Move event listeners to anchor to fix focus ring
...
PiperOrigin-RevId: 487619509
2022-11-10 13:08:15 -08:00
Elizabeth Mitchell
1808a19c5d
chore(button): merge static/theme-styles
...
PiperOrigin-RevId: 482260340
2022-10-19 11:37:52 -07:00
Elizabeth Mitchell
207c620515
chore(button): update to local custom properties
...
PiperOrigin-RevId: 482257619
2022-10-19 11:27:57 -07:00
Elizabeth Mitchell
650339cd0b
chore(button): flatten static/theme-styles
...
PiperOrigin-RevId: 482252622
2022-10-19 11:09:30 -07:00
Elizabeth Mitchell
73ca8ae0eb
chore: use relative paths
...
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -07:00
Elizabeth Mitchell
6059aa1c8f
chore(button): remove compat deps
...
PiperOrigin-RevId: 477772962
2022-09-29 11:14:20 -07:00
Kevin Vizcarra
9ec33ba879
feat(button): Add outlines in high contrast mode (HCM) to Button
...
PiperOrigin-RevId: 473124689
2022-09-08 17:28:32 -07:00
Kevin Vizcarra
54905dd751
docs(button): Copy-paste note re: LinkTarget
from Icon Button
...
PiperOrigin-RevId: 471078179
2022-08-30 13:39:37 -07:00
Kevin Vizcarra
5e2a46e9a7
fix(button): Remove aria-label
and aria-haspopup
attributes from Button HTML if not set
...
`@ariaProperty` uses `''` as a default value for the property, therefore the `ifDefined` directive was doing nothing.
PiperOrigin-RevId: 470843522
2022-08-29 16:34:35 -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
Kevin Vizcarra
8720a7765a
fix(button): Replace <mwc-icon>
with <md-icon>
...
PiperOrigin-RevId: 467836166
2022-08-15 22:02:34 -07:00
Elizabeth Mitchell
65463164c9
chore: various build fixes
...
PiperOrigin-RevId: 467245676
2022-08-12 10:51:27 -07:00
Kevin Vizcarra
61eb08e7b1
fix(button): Use correct padding for Text Button
...
According to the [M3 spec](https://m3.material.io/components/buttons/specs#899b9107-0127-4a01-8f4c-87f19323a1b4 ), Text Buttons have less side padding than the other Button variants.
PiperOrigin-RevId: 463712391
2022-07-27 17:01:23 -07:00
Kevin Vizcarra
94ea58ec37
refactor(button): Refactor Text Button padding implementation
...
PiperOrigin-RevId: 463685753
2022-07-27 14:53:37 -07:00
Material Web Team
10a6d353fc
refactor: mark disabled
and checked
as boolean values in lit templates.
...
PiperOrigin-RevId: 462716556
2022-07-22 15:27:12 -07:00
Material Web Team
6368e011e8
chore: move button into the new directory
...
PiperOrigin-RevId: 462461827
2022-07-21 13:47:51 -07:00