16 Commits

Author SHA1 Message Date
Daniel Freedman
24298e696c feat(button): add label slot
PiperOrigin-RevId: 515467458
2023-03-09 16:03:11 -08:00
Daniel Freedman
80590ae88d fix(all): remove @requirecss comments
PiperOrigin-RevId: 503551738
2023-01-20 17:02:21 -08:00
Daniel Freedman
4974edeb73 refactor(button): Use flex gap for internal layout
PiperOrigin-RevId: 500845959
2023-01-09 17:15:06 -08:00
Daniel Freedman
d3b517ad00 fix(button)!: remove icon property from Button, require slotted icons
BREAKING CHANGE: Remove icon property from Button, require slotted icons

PiperOrigin-RevId: 500770988
2023-01-09 11:51:32 -08:00
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
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
73ca8ae0eb chore: use relative paths
PiperOrigin-RevId: 481941267
2022-10-18 09:28:59 -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
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