27
27
28
28
// Size
29
29
--size : #{globals .$ion-scale-600 } ;
30
- --checkbox-background-checked : #{globals .$ion-semantics-primary-base } ;
30
+ --checkbox-background : #{globals .$ion-bg-input-default } ;
31
+ --checkbox-background-checked : #{globals .$ion-bg-primary-base-default } ;
31
32
--border-color-checked : #{globals .$ion-semantics-primary-base } ;
32
33
--checkmark-color : #{globals .$ion-primitives-base-white } ;
33
34
--transition : none ;
@@ -120,7 +121,7 @@ input {
120
121
}
121
122
122
123
.checkbox-bottom .helper-text {
123
- color : globals .$ion-primitives-neutral-800 ;
124
+ color : globals .$ion-text-subtlest ;
124
125
}
125
126
126
127
// Label Placement - Start
@@ -187,7 +188,6 @@ input {
187
188
188
189
// Checked / Indeterminate Checkbox
189
190
// ---------------------------------------------
190
-
191
191
:host (.checkbox-checked ) .native-wrapper ,
192
192
:host (.checkbox-indeterminate ) .native-wrapper {
193
193
border-color : var (--border-color-checked );
@@ -199,9 +199,12 @@ input {
199
199
// --------------------------------------------------
200
200
:host (.ion-invalid ) {
201
201
--focus-ring-color : #{globals .$ion-border-focus-error } ;
202
+ }
202
203
204
+ :host (.ion-invalid :not (.checkbox-checked )),
205
+ :host (.ion-invalid :not (.checkbox-checked ).checkbox-disabled ) {
203
206
.native-wrapper {
204
- border-color : globals .$ion-semantics -danger-800 ;
207
+ border-color : globals .$ion-border -danger-default ;
205
208
}
206
209
}
207
210
@@ -222,7 +225,7 @@ input {
222
225
:host (.checkbox-disabled.checkbox-checked ) .native-wrapper {
223
226
border-width : globals .$ion-border-size-0 ;
224
227
225
- background-color : globals .$ion-semantics -primary-base ;
228
+ background-color : globals .$ion-bg -primary-base-default ;
226
229
}
227
230
228
231
// Checkbox Hover
@@ -233,7 +236,9 @@ input {
233
236
}
234
237
235
238
:host (:hover .checkbox-checked ) .native-wrapper ,
236
- :host (:hover .checkbox-indeterminate ) .native-wrapper {
239
+ :host (:hover .checkbox-checked ) .checkbox-icon ,
240
+ :host (:hover .checkbox-indeterminate ) .native-wrapper ,
241
+ :host (:hover .checkbox-indeterminate ) .checkbox-icon {
237
242
background-color : globals .$ion-semantics-primary-800 ;
238
243
}
239
244
}
@@ -248,12 +253,22 @@ input {
248
253
// Checkbox: Active
249
254
// --------------------------------------------------------
250
255
:host (.ion-activated ) .native-wrapper {
251
- background-color : globals .$ion-primitives-neutral-200 ;
256
+ background-color : globals .$ion-bg-input-press ;
252
257
}
253
258
254
259
:host (.ion-activated.checkbox-checked ) .native-wrapper ,
255
- :host (.ion-activated.checkbox-indeterminate ) .native-wrapper {
256
- background-color : globals .$ion-semantics-primary-900 ;
260
+ :host (.ion-activated.checkbox-checked ) .checkbox-icon ,
261
+ :host (.ion-activated.checkbox-indeterminate ) .native-wrapper ,
262
+ :host (.ion-activated.checkbox-indeterminate ) .checkbox-icon {
263
+ background-color : globals .$ion-bg-primary-base-press ;
264
+ }
265
+
266
+ :host (.ion-activated.ion-invalid :not (.checkbox-checked )) {
267
+ background-color : globals .$ion-bg-input-press ;
268
+
269
+ .native-wrapper {
270
+ border-color : globals .$ion-border-danger-press ;
271
+ }
257
272
}
258
273
259
274
// Ionic Design Checkbox Shapes
0 commit comments