Allan Chen
df2d0f57a2
fix(button): misc elevation Sass fixes
...
PiperOrigin-RevId: 399731949
2021-09-29 11:23:11 -07:00
Alexander Marks
b1d21d02e1
Remove aomarks from auto format job assignees ( #2775 )
2021-09-29 10:20:33 -07:00
Copybara-Service
143ed3c80c
Merge pull request #2770 from material-components:auto-bump-mdc-deps-14.0.0-canary.86b50ef74.0
...
PiperOrigin-RevId: 399578780
2021-09-28 18:47:06 -07:00
Peter Burns
0f333a3e7f
chore: just import 'lit' in docs
...
PiperOrigin-RevId: 399536781
2021-09-28 14:59:03 -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
Polymer GitHub Actions Robot
9396c8949d
Auto bump MDC Web deps to 14.0.0-canary.86b50ef74.0
2021-09-28 18:04:01 +00: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
Material Web Team
3b15fe82d4
feat(m3, switch): add lit-to-wiz and tests
...
PiperOrigin-RevId: 399307790
2021-09-27 16:27:54 -07:00
Copybara-Service
3a5d5f34f2
Merge pull request #2763 from material-components:auto-format-action-6278ee5
...
PiperOrigin-RevId: 399297884
2021-09-27 15:38:54 -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
Polymer GitHub Actions Robot
9f5fe705ae
Auto-format
2021-09-27 18:29:05 +00:00
Peter Burns
6278ee5df9
chore: just import 'lit', it's cleaner
...
Fixes #2742
PiperOrigin-RevId: 399238961
2021-09-27 11:28:08 -07:00
Peter Siska
59595c0056
docs: warm up connection for Google fonts ( #2721 )
2021-09-24 12:23:01 -07:00
Material Web Team
3dbb73416f
feat(switch, m3): migrate switch component, create demo
...
PiperOrigin-RevId: 398776037
2021-09-24 11:32:29 -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
Copybara-Service
4abe237e1b
Merge pull request #2754 from material-components:auto-bump-mdc-deps-13.0.0-canary.c79aa0cdd.0
...
PiperOrigin-RevId: 398760242
2021-09-24 10:28:25 -07:00
Polymer GitHub Actions Robot
9b724cb0b6
Auto bump MDC Web deps to 13.0.0-canary.c79aa0cdd.0
2021-09-24 15:03:58 +00:00
Allan Chen
75f0793eca
feat(button): theme + theme-styles mixin for remaining variants
...
PiperOrigin-RevId: 398618094
2021-09-23 17:42:40 -07:00
Sayri Suarez
4724f26fa7
feat(menu): Adds option to prevent focus from being restored after an item action.
...
BREAKING CHANGE: Adds new menu adapter method:
/**
* @return the attribute string if present on an element at the index
* provided, null otherwise.
*/
getAttributeFromElementAtIndex(index: number, attr: string): string|null;
PiperOrigin-RevId: 398575780
2021-09-23 14:19:50 -07:00
Liz Mitchell
7302eba38e
feat(field): add initial field component styles
...
PiperOrigin-RevId: 398565207
2021-09-23 13:33:37 -07:00
Allan Chen
61f771945c
fix(button): remove classMap annotation
...
PiperOrigin-RevId: 398535608
2021-09-23 11:25:58 -07:00
Material Web Team
e2203ffabc
chore: fix compilation issues with TypeScript 4.4.
...
In TypeScript 4.4, type `Element` now extends from `AriaMixin` which collides with the existing `ariaChecked` property in the class. This is a temporary fix to make the targets build with 4.4.
PiperOrigin-RevId: 398535228
2021-09-23 11:24:20 -07:00
Material Web Team
07e91417e0
AccessibleSnackbarLabel: Avoid using render on an element that must have its textContent repeatedly set.
...
Setting `.textContent` of a node that was previously rendered to with Lit's `render` function will remove the comments Lit uses to keep track of the region it controls inside that node. In an upcoming version of Lit, if it detects this situation when dev-mode is enabled (as it is in the tests here), it will throw an error.
To work around this, I changed this directive to always update the content of `labelEl` manually, rather than using `render`. Originally, I planned to switch everything over to `render`, but the comments here imply that setting `.textContent` specifically is a critical part of making screenreaders behave as expected.
PiperOrigin-RevId: 398323705
2021-09-22 14:03:05 -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
b6fe2a12b6
fix(ripple): make bounded ripple self-contained
...
PiperOrigin-RevId: 398312548
2021-09-22 13:13:15 -07:00
Allan Chen
357d6c7ed7
feat(ripple): fork into m3 directory
...
PiperOrigin-RevId: 398021808
2021-09-21 10:06:16 -07:00
Joy Zhong
ae060177fa
fix(iconbutton): Center icon via flexbox.
...
PiperOrigin-RevId: 397991116
2021-09-21 07:35:15 -07:00
Copybara-Service
b1c1ab5230
Merge pull request #2734 from material-components:release-0.25.1
...
PiperOrigin-RevId: 397902093
v0.25.1
2021-09-20 20:09:37 -07:00
Elliott Marquez
b1a934642f
v0.25.1
2021-09-20 20:00:44 -07:00
Elliott Marquez
a5ccb67332
prepare release for 0.25.1
2021-09-20 19:59:48 -07:00
Copybara-Service
6be1a13e29
Merge pull request #2733 from material-components:lit-2-release
...
PiperOrigin-RevId: 397900048
v0.25.0
2021-09-20 19:50:20 -07:00
Elliott Marquez
fd93e75f8a
build: revert pacakgelock
2021-09-20 19:39:50 -07:00
Elliott Marquez
2826057b29
build: pin TS to 4.3
2021-09-20 19:24:07 -07:00
Elliott Marquez
7b4eedeac8
chore: document null tag
2021-09-20 19:09:47 -07:00
Elliott Marquez
a474e65744
v0.25.0
2021-09-20 19:08:51 -07:00
Elliott Marquez
af35344a47
v0.24.0
2021-09-20 19:08:23 -07:00
Elliott Marquez
d813bd54e2
chore: prepare for lit 2 release 0.24.0
2021-09-20 19:08:12 -07:00
Elliott Marquez
5a434a50ea
build: bump to lit 2 stable
...
PiperOrigin-RevId: 397892962
2021-09-20 18:57:44 -07:00
Copybara-Service
569d739fcf
Merge pull request #2727 from material-components:auto-format-action-73cea87
...
PiperOrigin-RevId: 397840438
2021-09-20 14:20:08 -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
Polymer GitHub Actions Robot
97ad1caf05
Auto-format
2021-09-20 19:32:33 +00: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
Alexander Marks
f2ea80c413
Return ClassInfo instead of a DirectiveResult from mwc-button's getRenderClasses() method.
...
1. It allows subclasses to augment the classes.
2. It avoids an issue relating to relying on the implied type of Directive results, due to a bug in tsc (see https://github.com/material-components/material-web/issues/2715 and https://github.com/microsoft/TypeScript/issues/45946 )
PiperOrigin-RevId: 397790019
2021-09-20 10:52:19 -07:00
Alexander Marks
1de87bb7d8
Add missing .js extension on import from mwc-snackbar to lit-html/directive
...
PiperOrigin-RevId: 397522675
2021-09-18 11:49:36 -07:00
Copybara-Service
32c830ee05
Merge pull request #2714 from material-components:auto-bump-mdc-deps-13.0.0-canary.65125b3a6.0
...
PiperOrigin-RevId: 397418212
2021-09-17 16:05:42 -07:00
Copybara-Service
1e5a988335
Merge pull request #2716 from material-components:sass-1.4-compat
...
PiperOrigin-RevId: 397389913
2021-09-17 13:36:39 -07:00
Alexander Marks
3bd4f81e5c
Pin Sass to older version
...
Once https://github.com/material-components/material-components-web/pull/7402
is released, we can bump back up to 1.4
2021-09-17 11:52:42 -07:00
Alexander Marks
2793afd799
Quote invalid-syntax calc expressions for compatibility with Sass 1.4
2021-09-17 11:45:59 -07:00