Skip to content

Commit 9021234

Browse files
committed
style(theme): #77 added theme support for checkboxes
1 parent dfa48b9 commit 9021234

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

sass/components/_variables.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ $input-margin-bottom: 8px;
204204
$input-margin: 0 0 $input-margin-bottom 0 !default;
205205
$input-padding: 0 !default;
206206
$label-font-size: .8rem !default;
207-
$input-disabled-color: rgba(0,0,0, .42) !default;
208-
$input-disabled-solid-color: #949494 !default;
207+
$input-disabled-color: var(--font-color-disabled) !default;
208+
$input-disabled-solid-color: var(--font-color-disabled) !default;
209209
$input-disabled-border: 1px dotted $input-disabled-color !default;
210210
$input-invalid-border: 1px solid $input-error-color !default;
211211
$input-icon-size: 2rem;
@@ -214,7 +214,7 @@ $placeholder-text-color: var(--font-color-medium) !default;
214214
// Radio Buttons
215215
$radio-fill-color: $primary-color !default;
216216
$radio-focus-color: $primary-color-focus-opaque !default;
217-
$radio-empty-color: #5a5a5a !default;
217+
$radio-empty-color: var(--font-color-medium) !default;
218218
$radio-border: 2px solid $radio-fill-color !default;
219219

220220
// Range

sass/components/forms/_checkboxes.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
transform: scale(1);
5555
border: 0;
5656
border-radius: 50%;
57-
box-shadow: 0 0 0 10px rgba(0,0,0,.1);
58-
background-color: rgba(0,0,0,.1);
57+
box-shadow: 0 0 0 10px $bg-focus-color-opaque;
58+
background-color: $bg-focus-color-opaque;
5959
}
6060
}
6161

@@ -159,8 +159,8 @@
159159
top: 0;
160160
width: 20px;
161161
height: 20px;
162-
border: 2px solid $secondary-color;
163-
background-color: $secondary-color;
162+
border: 2px solid $primary-color;
163+
background-color: $primary-color;
164164
z-index: 0;
165165
}
166166
}
@@ -169,13 +169,13 @@
169169
&.tabbed:focus + span:not(.lever):after {
170170
border-radius: 2px;
171171
border-color: $radio-empty-color;
172-
background-color: rgba(0,0,0,.1);
172+
background-color: $bg-focus-color-opaque;
173173
}
174174

175175
&.tabbed:checked:focus + span:not(.lever):after {
176176
border-radius: 2px;
177-
background-color: $secondary-color;
178-
border-color: $secondary-color;
177+
background-color: $primary-color;
178+
border-color: $primary-color;
179179
}
180180

181181
// Disabled style

0 commit comments

Comments
 (0)