File tree Expand file tree Collapse file tree 5 files changed +0
-115
lines changed
src/components/checkbox/themes/shared/switch Expand file tree Collapse file tree 5 files changed +0
-115
lines changed Original file line number Diff line number Diff line change @@ -85,24 +85,6 @@ $theme: $bootstrap;
8585 }
8686}
8787
88- :host (:not ([disabled ])[invalid ]),
89- :host (:not (:disabled )[invalid ]) {
90- [part ~= ' control' ],
91- [part ~= ' control' ][part ~= ' checked' ] {
92- border-color : var-get ($theme , ' error-color' );
93- }
94-
95- [part ~= ' control' ][part ~= ' checked' ],
96- [part ~= ' thumb' ]:not ([part ~= ' checked' ]) {
97- background : var-get ($theme , ' error-color' );
98- }
99-
100- [part = ' focused' ][part ~= ' control' ],
101- [part = ' focused' ][part ~= ' control' ][part ~= ' checked' ] {
102- box-shadow : 0 0 0 rem (2px ) var-get ($theme , ' error-color-hover' );
103- }
104- }
105-
10688:host ([disabled ]) {
10789 [part ~= ' control' ][part ~= ' checked' ] {
10890 border-color : var-get ($theme , ' track-on-disabled-color' );
Original file line number Diff line number Diff line change @@ -39,12 +39,3 @@ $theme: $material;
3939 background : var-get ($theme , ' thumb-disabled-color' );
4040 }
4141}
42-
43- :host (:not ([disabled ])[invalid ]),
44- :host (:not (:disabled )[invalid ]) {
45- color : var-get ($theme , ' label-invalid-color' );
46-
47- [part ~= ' label' ] {
48- color : var-get ($theme , ' label-invalid-color' );
49- }
50- }
Original file line number Diff line number Diff line change @@ -78,28 +78,3 @@ $theme: $fluent;
7878 background : var-get ($theme , ' thumb-on-color' );
7979 }
8080}
81-
82- :host (:not ([disabled ])[invalid ]),
83- :host (:not (:disabled )[invalid ]) {
84- [part ~= ' control' ][part ~= ' checked' ] {
85- background : var-get ($theme , ' track-error-color' );
86- }
87-
88- [part ~= ' control' ],
89- [part ~= ' control' ][part ~= ' checked' ] {
90- border-color : var-get ($theme , ' error-color' );
91- }
92-
93- [part ~= ' thumb' ] {
94- background : var-get ($theme , ' error-color' );
95- }
96-
97- [part ~= ' control' ][part ~= ' focused' ],
98- [part ~= ' control' ][part ~= ' checked' ][part ~= ' focused' ] {
99- box-shadow : 0 0 0 rem (2px ) var-get ($theme , ' error-color-hover' );
100- }
101-
102- [part ~= ' thumb' ][part ~= ' checked' ] {
103- background : var-get ($theme , ' thumb-on-error-color' );
104- }
105- }
Original file line number Diff line number Diff line change @@ -72,33 +72,6 @@ $border-width: rem(1px);
7272 margin-inline-start : calc (100% - var (--thumb-size ) - var (--thumb-offset ));
7373}
7474
75- :host (:not ([disabled ])[invalid ]),
76- :host (:not (:disabled )[invalid ]) {
77- [part ~= ' control' ] {
78- background : var-get ($theme , ' track-error-color' );
79- }
80-
81- [part ~= ' control' ],
82- [part ~= ' control' ][part ~= ' checked' ] {
83- border-color : var-get ($theme , ' error-color' );
84- }
85-
86- [part ~= ' control' ][part ~= ' checked' ],
87- [part ~= ' thumb' ] {
88- background : var-get ($theme , ' error-color' );
89- }
90-
91- [part ~= ' control' ][part ~= ' focused' ],
92- [part ~= ' control' ][part ~= ' checked' ][part ~= ' focused' ] {
93- box-shadow : 0 0 0 rem (2px ) var-get ($theme , ' error-color-hover' );
94- }
95-
96-
97- [part ~= ' thumb' ][part ~= ' checked' ] {
98- background : var-get ($theme , ' thumb-on-error-color' );
99- }
100- }
101-
10275:host ([disabled ]),
10376:host (:disabled ) {
10477 [part ~= ' control' ][part ~= ' checked' ] {
Original file line number Diff line number Diff line change @@ -103,39 +103,3 @@ $ripple-radius: calc(#{$ripple-size} / 2);
103103 animation-duration : .2s ;
104104 animation-fill-mode : forwards ;
105105}
106-
107- :host ([invalid ]) {
108- [part ~= ' control' ] {
109- border-color : var-get ($theme , ' track-error-color' );
110- background : var-get ($theme , ' track-error-color' );
111- }
112-
113- [part ~= ' thumb' ] {
114- background : var-get ($theme , ' error-color' );
115- }
116-
117- [part ~= ' thumb' ][part ~= ' checked' ] {
118- background : var-get ($theme , ' thumb-on-error-color' );
119- }
120-
121- [part ~= ' thumb' ][part ~= ' focused' ] {
122- & ::after {
123- background : var-get ($theme , ' error-color-hover' );
124- }
125- }
126-
127- & :hover {
128- [part ~= ' thumb' ] {
129- & ::after {
130- background : var-get ($theme , ' error-color-hover' );
131- }
132- }
133- }
134- }
135-
136- :host (:not ([disabled ])[invalid ]),
137- :host (:not (:disabled )[invalid ]) {
138- [part ~= ' control' ] {
139- background : var-get ($theme , ' track-error-color' );
140- }
141- }
You can’t perform that action at this time.
0 commit comments