Allan Chen
df2d0f57a2
fix(button): misc elevation Sass fixes
...
PiperOrigin-RevId: 399731949
2021-09-29 11:23:11 -07:00
Allan Chen
9166403998
fix(button): move icon container ClassInfo to separate template
...
PiperOrigin-RevId: 399514012
2021-09-28 13:19:36 -07:00
Allan Chen
807691a984
fix(button): update annotations for classmap
...
PiperOrigin-RevId: 399470683
2021-09-28 10:23:24 -07:00
Material Web Team
0f6d402472
Add the override keyword to class members in TypeScript files
...
TypeScript’s override keyword (added in 4.3) works similarly to @Override in Java. It makes the intention clear and ensures there is actually a member in the base class with the same name. This helps with things like:
- Typos in the overriding member name
- Remember to rename members in sub classes when renaming an overridden member in a base class
class Parent {
foo() {}
}
class Child extends Parent {
override bar() {}
// ~~~ This member cannot have an 'override' modifier because it is not declared in the base class 'Parent'.
}
This change will not cause a runtime change: the override keyword is not present in the resulting JavaScript.
PiperOrigin-RevId: 399452347
2021-09-28 09:00:31 -07:00
Allan Chen
3b8cf292fb
feat(button): add tonal variant class, fix outline positioning
...
PiperOrigin-RevId: 399274038
2021-09-27 13:58:06 -07:00
Peter Burns
6278ee5df9
chore: just import 'lit', it's cleaner
...
Fixes #2742
PiperOrigin-RevId: 399238961
2021-09-27 11:28:08 -07:00
Allan Chen
1b9dbdf878
refactor(button): hoist customElement+styles decl's to top level
...
PiperOrigin-RevId: 398761505
2021-09-24 10:33:37 -07:00
Allan Chen
75f0793eca
feat(button): theme + theme-styles mixin for remaining variants
...
PiperOrigin-RevId: 398618094
2021-09-23 17:42:40 -07:00
Allan Chen
61f771945c
fix(button): remove classMap annotation
...
PiperOrigin-RevId: 398535608
2021-09-23 11:25:58 -07:00
Allan Chen
cd56d0e72f
feat(button): theme + theme-styles mixin for filled variant
...
PiperOrigin-RevId: 398318378
2021-09-22 13:38:47 -07:00
Allan Chen
902f259fb7
feat(button): outlined button styles w/ dedicated outline node
...
PiperOrigin-RevId: 397829718
2021-09-20 13:33:00 -07:00
Allan Chen
73cea87030
feat(button): m3 elevation + icon base theme modules
...
PiperOrigin-RevId: 397814721
2021-09-20 12:31:47 -07:00
Allan Chen
7d8ca0aa42
feat(button): m3 base theme modules
...
PiperOrigin-RevId: 397799202
2021-09-20 11:27:08 -07:00
Allan Chen
c79aabe6e6
feat(button): add m3 stories
...
PiperOrigin-RevId: 397203012
2021-09-16 17:10:39 -07:00
Allan Chen
a27736e717
feat(button): top level variant TS files
...
PiperOrigin-RevId: 397201951
2021-09-16 17:04:56 -07:00
Allan Chen
040d9c54e2
fix(button): Change variants to use classMap inheritance scheme
...
PiperOrigin-RevId: 397200434
2021-09-16 16:57:49 -07:00
Allan Chen
003fd185fb
fix(button): move slotchange onto slot element, add hasIcon property
...
PiperOrigin-RevId: 397183494
2021-09-16 15:32:28 -07:00
Allan Chen
08eaf22b53
feat(button): add variant TS for m3
...
PiperOrigin-RevId: 396940590
2021-09-15 15:41:51 -07:00
Daniel Freedman
a71320823b
fix(components): Move components folder to correct spot
...
PiperOrigin-RevId: 396927095
2021-09-15 14:42:10 -07:00