This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ describe('MDCCheckboxFoundation', () => {
139
139
* Used to test the behavior of overridding WebIDL properties in different
140
140
* browser environments. For example, in Safari WebIDL attributes don't
141
141
* return get/set in descriptors.
142
- */
142
+ */
143
143
function withMockCheckboxDescriptorReturning (
144
144
descriptor : undefined | typeof DESC_UNDEFINED , runTests : ( ) => void ) {
145
145
const mockGetOwnPropertyDescriptor =
@@ -152,11 +152,10 @@ describe('MDCCheckboxFoundation', () => {
152
152
153
153
const originalDesc =
154
154
Object . getOwnPropertyDescriptor ( Object , 'getOwnPropertyDescriptor' ) ;
155
- Object . defineProperty (
156
- Object , 'getOwnPropertyDescriptor' , {
157
- ...originalDesc ,
158
- value : mockGetOwnPropertyDescriptor ,
159
- } ) ;
155
+ Object . defineProperty ( Object , 'getOwnPropertyDescriptor' , {
156
+ ...originalDesc ,
157
+ value : mockGetOwnPropertyDescriptor ,
158
+ } ) ;
160
159
runTests ( ) ;
161
160
162
161
// After running tests, restore original property.
Original file line number Diff line number Diff line change @@ -113,9 +113,7 @@ $mdc-fab-ripple-target: ".mdc-fab__ripple";
113
113
#{$mdc-fab-ripple-target } {
114
114
@include mdc-ripple-target-common ($query : $query );
115
115
116
- @include mdc-feature-targets ($feat-structure ) {
117
- overflow : hidden ;
118
- }
116
+ overflow : hidden ;
119
117
}
120
118
}
121
119
Original file line number Diff line number Diff line change 146
146
& .mdc-switch--checked .mdc-switch__track {
147
147
@include mdc-feature-targets ($feat-color ) {
148
148
@include mdc-theme-prop (background-color , $color );
149
- @include mdc-theme-prop (border-color , $color );
150
149
}
151
150
}
152
151
}
174
173
& :not (.mdc-switch--checked ) .mdc-switch__track {
175
174
@include mdc-feature-targets ($feat-color ) {
176
175
@include mdc-theme-prop (background-color , $color );
177
- @include mdc-theme-prop (border-color , $color );
178
176
}
179
177
}
180
178
}
272
270
@mixin mdc-switch__track_ ($query : mdc-feature-all ()) {
273
271
$feat-animation : mdc-feature-create-target ($query , animation );
274
272
$feat-structure : mdc-feature-create-target ($query , structure );
273
+ $feat-color : mdc-feature-create-target ($query , color );
275
274
276
275
@include mdc-feature-targets ($feat-structure ) {
277
276
box-sizing : border-box ;
288
287
mdc-switch-transition (background-color ),
289
288
mdc-switch-transition (border-color );
290
289
}
290
+
291
+ @include mdc-feature-targets ($feat-color ) {
292
+ @include mdc-theme-prop (border-color , transparent );
293
+ }
291
294
}
292
295
293
296
@mixin mdc-switch__thumb-underlay_ ($query : mdc-feature-all ()) {
Original file line number Diff line number Diff line change 21
21
* THE SOFTWARE.
22
22
*/
23
23
24
+ import 'jasmine' ;
25
+
24
26
import { MDCFoundation } from '../../packages/mdc-base/foundation' ;
25
27
import { FoundationConstructor } from './setup' ;
26
28
You can’t perform that action at this time.
0 commit comments