Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit b8cfff7

Browse files
authored
feat: Upgrade to material-components-web v0.42.1 (#1624)
Closes #1622
1 parent a53af4c commit b8cfff7

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@angular/forms": "^7.1.4",
3232
"@angular/platform-browser": "^7.1.4",
3333
"core-js": "^2.6.1",
34-
"material-components-web": "^0.42.0",
34+
"material-components-web": "^0.42.1",
3535
"rxjs": "^6.3.3",
3636
"tsickle": "^0.34.0",
3737
"tslib": "1.9.3",

packages/material-components-web/scss/menu-surface/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ $mdc-menu-surface-fade-in-duration: .03s;
2424
$mdc-menu-surface-fade-out-duration: .075s;
2525
$mdc-menu-surface-scale-duration: .12s;
2626
$mdc-menu-surface-min-distance-from-edge: 32px;
27+
$mdc-menu-surface-z-index: 8 !default; // One above mdc-dialog

packages/material-components-web/scss/menu-surface/mdc-menu-surface.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
opacity: 0;
4848
overflow: auto;
4949
will-change: transform, opacity;
50-
z-index: 4;
51-
50+
z-index: $mdc-menu-surface-z-index;
51+
5252
&:focus {
5353
outline: none;
5454
}

packages/material-components-web/scss/menu/mdc-menu.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
}
6666
}
6767

68+
// Extra specificity required to override `display` property on `mdc-list-item__graphic`.
6869
.mdc-menu__selection-group-icon {
6970
@include mdc-rtl-reflexive-position(left, 16px);
7071

packages/material-components-web/scss/textfield/_mixins.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@
423423
padding: 0;
424424
}
425425
}
426+
427+
&.mdc-text-field--textarea .mdc-text-field__input {
428+
resize: vertical;
429+
}
426430
}
427431

428432
@mixin mdc-text-field-fullwidth-invalid_ {

packages/notched-outline/notched-outline.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ export class MdcNotchedOutline {
5353

5454
constructor(public elementRef: ElementRef<HTMLElement>) { }
5555

56-
/** Updates notched outline to open notch in outline path. */
56+
/** Updates classes and styles to open the notch to the specified width. */
5757
notch(notchWidth: number): void {
5858
this._foundation.notch(notchWidth);
5959
}
6060

61-
/** Updates the notched outline to close notch in outline path. */
61+
/** Updates classes and styles to close the notch. */
6262
closeNotch(): void {
6363
this._foundation.closeNotch();
6464
}

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5899,7 +5899,7 @@ matchdep@^2.0.0:
58995899
resolve "^1.4.0"
59005900
stack-trace "0.0.10"
59015901

5902-
material-components-web@^0.42.0:
5902+
material-components-web@^0.42.1:
59035903
version "0.42.1"
59045904
resolved "https://registry.yarnpkg.com/material-components-web/-/material-components-web-0.42.1.tgz#007b729af28f8f22bef003e90c548853694f5ea4"
59055905
integrity sha512-Hl5l7BX/9HoT8zlV5glbRCnE/B3w/bnsq2UdJ+8VqDSX8hIwgKMgDAdemV5nKTQlRS6zkM8yk/xV3aAU/jAr4w==

0 commit comments

Comments
 (0)