material_components_web-sass 0.21.1 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,9 @@
19
19
  // Applies the correct theme color style to the specified property.
20
20
  // $property is typically color or background-color, but can be any CSS property that accepts color values.
21
21
  // $style should be one of the map keys in $mdc-theme-property-values (_variables.scss), or a literal color value.
22
- @mixin mdc-theme-prop($property, $style, $important: false) {
22
+ // $edgeOptOut controls whether to feature-detect around Edge to avoid emitting CSS variables for it,
23
+ // intended for use in cases where interactions with pseudo-element styles cause problems due to Edge bugs.
24
+ @mixin mdc-theme-prop($property, $style, $important: false, $edgeOptOut: false) {
23
25
  @if type-of($style) == "color" {
24
26
  @if $important {
25
27
  #{$property}: $style !important;
@@ -36,11 +38,41 @@
36
38
  @if $important {
37
39
  /* @alternate */
38
40
  #{$property}: $value !important;
39
- #{$property}: var(--mdc-theme-#{$style}, $value) !important;
41
+
42
+ @if $edgeOptOut {
43
+ // stylelint-disable max-nesting-depth
44
+ @at-root {
45
+ @supports not (-ms-ime-align:auto) {
46
+ // stylelint-disable scss/selector-no-redundant-nesting-selector
47
+ & {
48
+ #{$property}: var(--mdc-theme-#{$style}, $value) !important;
49
+ }
50
+ // stylelint-enable scss/selector-no-redundant-nesting-selector
51
+ }
52
+ }
53
+ // stylelint-enable max-nesting-depth
54
+ } @else {
55
+ #{$property}: var(--mdc-theme-#{$style}, $value) !important;
56
+ }
40
57
  } @else {
41
58
  /* @alternate */
42
59
  #{$property}: $value;
43
- #{$property}: var(--mdc-theme-#{$style}, $value);
60
+
61
+ @if $edgeOptOut {
62
+ // stylelint-disable max-nesting-depth
63
+ @at-root {
64
+ @supports not (-ms-ime-align:auto) {
65
+ // stylelint-disable scss/selector-no-redundant-nesting-selector
66
+ & {
67
+ #{$property}: var(--mdc-theme-#{$style}, $value);
68
+ }
69
+ // stylelint-enable scss/selector-no-redundant-nesting-selector
70
+ }
71
+ }
72
+ // stylelint-enable max-nesting-depth
73
+ } @else {
74
+ #{$property}: var(--mdc-theme-#{$style}, $value);
75
+ }
44
76
  }
45
77
  }
46
78
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_components_web-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Tarasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-21 00:00:00.000000000 Z
11
+ date: 2017-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -176,6 +176,8 @@ files:
176
176
  - vendor/assets/stylesheets/@material/tabs/tab-bar-scroller/mdc-tab-bar-scroller.scss
177
177
  - vendor/assets/stylesheets/@material/tabs/tab-bar/mdc-tab-bar.scss
178
178
  - vendor/assets/stylesheets/@material/tabs/tab/mdc-tab.scss
179
+ - vendor/assets/stylesheets/@material/textfield/_mixins.scss
180
+ - vendor/assets/stylesheets/@material/textfield/_variables.scss
179
181
  - vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss
180
182
  - vendor/assets/stylesheets/@material/theme/_color_palette.scss
181
183
  - vendor/assets/stylesheets/@material/theme/_constants.scss