|
89 | 89 | }
|
90 | 90 | }
|
91 | 91 |
|
| 92 | +@mixin mdc-select-corner-radius($radius) { |
| 93 | + border-radius: $radius $radius 0 0; |
| 94 | +} |
| 95 | + |
| 96 | +@mixin mdc-select-outline-corner-radius($radius) { |
| 97 | + // NOTE: idle and notched state border radius mixins |
| 98 | + // are broken into 2 different mixins, otherwise |
| 99 | + // we would be overly specific (big no, no). The cause of |
| 100 | + // this is because .mdc-notched-outline and .mdc-notched-outline__idle |
| 101 | + // are siblings. .mdc-notched-outline__idle needs to be a child of |
| 102 | + // .mdc-notched-outline in order to remedy this issue. |
| 103 | + .mdc-notched-outline { |
| 104 | + @include mdc-notched-outline-corner-radius($radius); |
| 105 | + } |
| 106 | + |
| 107 | + @include mdc-notched-outline-idle-corner-radius($radius); |
| 108 | +} |
| 109 | + |
92 | 110 | // Private
|
93 | 111 | @mixin mdc-select-focused-line-ripple_ {
|
94 | 112 | .mdc-select__native-control:focus ~ .mdc-line-ripple {
|
|
133 | 151 | background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23#{$fill-hex-number}%22%20fill-rule%3D%22evenodd%22%20opacity%3D%22#{$opacity}%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E");
|
134 | 152 | }
|
135 | 153 |
|
136 |
| -@mixin mdc-select-outline-corner-radius($radius) { |
137 |
| - // NOTE: idle and notched state border radius mixins |
138 |
| - // are broken into 2 different mixins, otherwise |
139 |
| - // we would be overly specific (big no, no). The cause of |
140 |
| - // this is because .mdc-notched-outline and .mdc-notched-outline__idle |
141 |
| - // are siblings. .mdc-notched-outline__idle needs to be a child of |
142 |
| - // .mdc-notched-outline in order to remedy this issue. |
143 |
| - .mdc-notched-outline { |
144 |
| - @include mdc-notched-outline-corner-radius($radius); |
145 |
| - } |
146 |
| - |
147 |
| - @include mdc-notched-outline-idle-corner-radius($radius); |
148 |
| -} |
149 |
| - |
150 | 154 | @mixin mdc-select-outline-color_($color) {
|
151 | 155 | // NOTE: outlined version of select wants the "idle" and
|
152 | 156 | // "notched" outline to have the same color. This covers two cases:
|
|
0 commit comments