Commit Graph

135 Commits

Author SHA1 Message Date
Andrew Jakubowicz
10f60d23e0 chore: rename e to event
PiperOrigin-RevId: 549039407
2023-07-18 10:16:37 -07:00
Elizabeth Mitchell
243e231a13 feat(all): expose focus-ring parts
PiperOrigin-RevId: 548873009
2023-07-17 20:28:04 -07:00
Elizabeth Mitchell
fd28dd1a5b chore(all): move focus tokens to focus ring element
PiperOrigin-RevId: 548872335
2023-07-17 20:24:46 -07:00
Andrew Jakubowicz
25be982568 fix(button)!: remove with-* prefix from tokens
PiperOrigin-RevId: 546883625
2023-07-10 08:44:40 -07:00
Andrew Jakubowicz
9244524471 fix(button)!: remove unnecessary property preventClickDefault
PiperOrigin-RevId: 542958395
2023-06-23 14:27:32 -07:00
Andrew Jakubowicz
1a6fc29174 fix(button)!: normalize compound properties to have kebab-cased attributes
BREAKING_CHANGE: The attributes `trailingicon`, and `hasicon` have been renamed to `trailing-icon` and `has-icon` respectively.
PiperOrigin-RevId: 542447334
2023-06-21 21:36:38 -07:00
Elizabeth Mitchell
1790a5bbf8 chore: remove closure comments from static blocks
PiperOrigin-RevId: 539772537
2023-06-12 15:07:36 -07:00
Elizabeth Mitchell
0607d9ca53 chore: fix jscompiler issues
PiperOrigin-RevId: 539716693
2023-06-12 11:42:52 -07:00
Elizabeth Mitchell
b9daa95164 chore(controller): move to internal
PiperOrigin-RevId: 536574896
2023-05-30 19:43:02 -07:00
Elizabeth Mitchell
a2bb8458d2 chore(sass): move to internal
PiperOrigin-RevId: 536458468
2023-05-30 11:23:00 -07:00
Elizabeth Mitchell
5efdc593fa chore(aria): move to internal
PiperOrigin-RevId: 536444453
2023-05-30 10:37:46 -07:00
Material Web Team
545ce0d895 feat(button): adds type property to support form submit and reset
PiperOrigin-RevId: 535748632
2023-05-26 17:09:55 -07:00
Elizabeth Mitchell
7c08efdd66 chore(all): remove ripple directive
PiperOrigin-RevId: 535647846
2023-05-26 10:06:39 -07:00
Elizabeth Mitchell
933fc2e013 fix(all): remove focus state layer tokens
BREAKING CHANGE: Remove any *-focus-state-layer-* custom properties (they don't do anything)

PiperOrigin-RevId: 535302944
2023-05-25 10:33:20 -07:00
Elizabeth Mitchell
c566a64ef7 fix(button): theme mixin not validating
PiperOrigin-RevId: 535046546
2023-05-24 17:59:37 -07:00
Elizabeth Mitchell
4ddeee1a2e chore: remove types folder
PiperOrigin-RevId: 532095745
2023-05-15 06:51:39 -07:00
Elizabeth Mitchell
c87792a757 chore(sass): remove dom, feature-flags, map-ext, and touch-target APIs
PiperOrigin-RevId: 531352456
2023-05-11 17:38:43 -07:00
Elliott Marquez
dc49e0b518 docs: update playground urls to match new base-URI
PiperOrigin-RevId: 531322264
2023-05-11 15:24:11 -07:00
Elliott Marquez
5f80c096e0 refactor: remove extraneous file extensions
PiperOrigin-RevId: 531005525
2023-05-10 14:26:01 -07:00
Elliott Marquez
1cade43ccf refactor: remove extraneous file extensions
PiperOrigin-RevId: 530993820
2023-05-10 14:04:53 -07:00
Elizabeth Mitchell
83373eeb0c chore: remove strong focus
PiperOrigin-RevId: 528564626
2023-05-01 13:49:51 -07:00
Elizabeth Mitchell
969cd24539 chore(button): remove shape resolver
PiperOrigin-RevId: 527359555
2023-04-26 13:30:49 -07:00
Elizabeth Mitchell
5934de0603 fix(focus): update focus-ring tokens
PiperOrigin-RevId: 527319619
2023-04-26 11:13:00 -07:00
Elizabeth Mitchell
db8ee4d1df chore: use private instead of protected
PiperOrigin-RevId: 527010546
2023-04-25 10:40:48 -07:00
Elizabeth Mitchell
e39809969f fix(button)!: remove label property
PiperOrigin-RevId: 526741279
2023-04-24 13:37:45 -07:00
Elizabeth Mitchell
9e234770b5 fix(button): closure conformance issue
PiperOrigin-RevId: 526720124
2023-04-24 12:18:46 -07:00
Elizabeth Mitchell
eb24edf69b chore: move button label properties to slotted content
PiperOrigin-RevId: 526681792
2023-04-24 10:19:15 -07:00
Elizabeth Mitchell
e0bbe3850c feat(aria): add aria delegation
PiperOrigin-RevId: 526474126
2023-04-23 14:19:40 -07:00
Elliott Marquez
5e1fe1ccc7 fix(ssr): try to remove event listener calls on server
PiperOrigin-RevId: 525534289
2023-04-19 13:24:58 -07:00
Material Web Team
a44bc3a87c fix(button): fix template typo
PiperOrigin-RevId: 523804709
2023-04-12 14:22:52 -07:00
Elizabeth Mitchell
301eb9a18f fix(elevation): tidy up tokens and update roadmap
PiperOrigin-RevId: 523211633
2023-04-10 14:24:25 -07:00
Daniel Freedman
9ce10bc100 chore(all): remove unnecessary property typing for strings
PiperOrigin-RevId: 523201301
2023-04-10 13:43:10 -07:00
Elizabeth Mitchell
50157e61a7 fix(button): tonal surface update
PiperOrigin-RevId: 522243314
2023-04-05 21:58:36 -07:00
Elizabeth Mitchell
d12ed3e4e3 chore(elevation)!: remove surface for tonal surface update
Changes:
- Elevation is now `inset:0;position:absolute;` by default
- Separated surface styles into a temporary `<md-elevation-surface>` element (this will be removed after tonal surface update)
PiperOrigin-RevId: 521934300
2023-04-04 20:14:24 -07:00
Elizabeth Mitchell
2c1c80d3d6 fix(button): incorrect theme custom properties
Fixes #4095

PiperOrigin-RevId: 520370000
2023-03-29 10:12:53 -07:00
Elizabeth Mitchell
acfdbb4f92 fix(button)!: merge standard and link buttons
PiperOrigin-RevId: 520365410
2023-03-29 09:57:53 -07:00
Copybara-Service
bf61232bb3 Merge pull request #4026 from steverep:buttons-aria-expanded
PiperOrigin-RevId: 518928271
2023-03-23 12:09:30 -07:00
Elizabeth Mitchell
e33422ac2a chore(tokens): add supported token lists for cleaner documentation
PiperOrigin-RevId: 518893012
2023-03-23 10:10:00 -07:00
Elizabeth Mitchell
eed1abd8ea chore(button): remove resolvers
PiperOrigin-RevId: 518375891
2023-03-21 14:06:33 -07:00
Elizabeth Mitchell
f90aab27b4 fix(button): enable separate color and opacity tokens
PiperOrigin-RevId: 518329426
2023-03-21 11:22:49 -07:00
Elizabeth Mitchell
789d23bd61 chore(sass): remove typography resolvers
PiperOrigin-RevId: 518054505
2023-03-20 13:09:04 -07:00
Elizabeth Mitchell
715c5927a7 chore(sass): remove elevation resolvers
PiperOrigin-RevId: 518051579
2023-03-20 12:57:55 -07:00
Elizabeth Mitchell
028e44e8c9 fix(dialog): incorrect elevation layering
PiperOrigin-RevId: 518039204
2023-03-20 12:11:00 -07:00
Elizabeth Mitchell
6700947806 fix(button): text button background not transparent
PiperOrigin-RevId: 518011560
2023-03-20 10:39:35 -07:00
Daniel Freedman
24298e696c feat(button): add label slot
PiperOrigin-RevId: 515467458
2023-03-09 16:03:11 -08:00
Steve Repsher
a588856a8e
feat(button,iconbutton): Add support for aria-expanded to buttons 2023-03-06 00:08:58 -05:00
Daniel Freedman
69f9a17a12 fix(button)!: replace label-text-* tokens with label-text-type
PiperOrigin-RevId: 510222434
2023-02-16 13:04:23 -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
Elizabeth Mitchell
3693fb714d docs(button): add docs
PiperOrigin-RevId: 509390889
2023-02-13 18:34:33 -08:00
Elizabeth Mitchell
ff84a66f3e fix(ripple)!: remove "state-layer" from token names
PiperOrigin-RevId: 509298729
2023-02-13 12:17:37 -08:00
Daniel Freedman
44a8d74f56 fix(all)!: use shape.resolve-tokens and remove shape.resolve-theme
PiperOrigin-RevId: 509284550
2023-02-13 11:26:55 -08:00
Daniel Freedman
80590ae88d fix(all): remove @requirecss comments
PiperOrigin-RevId: 503551738
2023-01-20 17:02:21 -08:00
Elizabeth Mitchell
060d204334 chore: update component tokens to v0.152
PiperOrigin-RevId: 501055718
2023-01-10 11:56:25 -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
Daniel Freedman
6e0775ded3 fix(button, fab): Ensure elevation is correct when focused and hovering
PiperOrigin-RevId: 500032153
2023-01-05 21:08:41 -08:00
Daniel Freedman
7fad3a56d9 feat(focus-ring, button): Match focus ring shape to button shape
BREAKING CHANGE: Button shape properties are now of the form `--md-text-button-container-shape-start-start`

PiperOrigin-RevId: 497196760
2022-12-22 10:42:52 -08:00
Elizabeth Mitchell
e7ededa579 chore(radio): remove ripple-theme.scss
PiperOrigin-RevId: 496483211
2022-12-19 13:52:45 -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
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