Skip to content

Commit 22bd989

Browse files
committed
Add dark mode style to datepicker icon
1 parent a6f4024 commit 22bd989

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

examples/questionnaire/Example.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090
new QuestionModel({
9191
id: 'first_name',
9292
tagline: 'Hi! Welcome to our demo survey 😊',
93-
title: 'What is your first name?',
94-
type: QuestionType.Text,
93+
title: 'What is your birthday?',
94+
type: QuestionType.Date,
9595
required: true,
9696
placeholder: 'Start typing here...'
9797
}),

src/assets/css/themes/theme-green.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ header.vff-header svg.f-logo {
226226
color: var(--vff-main-accent-color);
227227
}
228228

229+
.vff ::-webkit-calendar-picker-indicator {
230+
filter: invert(100%);
231+
}
232+
233+
229234
.vff span.f-answered{
230235
color: var(--vff-main-accent-color);
231236
}
@@ -239,7 +244,7 @@ header.vff-header svg.f-logo {
239244
}
240245

241246
/*footer*/
242-
.vff-footer .footer-inner-wrap{
247+
.vff-footer .footer-inner-wrap {
243248
background-color: var(--vff-bg-color);
244249
}
245250

@@ -253,12 +258,12 @@ header.vff-header svg.f-logo {
253258
fill: var(--vff-main-text-color);
254259
}
255260

256-
.vff-footer .footer-inner-wrap{
261+
.vff-footer .footer-inner-wrap {
257262
background-color: rgba(49,54,64,0.75);
258263
}
259264

260265
.vff-footer .f-prev:hover,
261-
.vff-footer .f-next:hover{
266+
.vff-footer .f-next:hover {
262267
background-color: rgba(0,0,0,0.2);
263268
}
264269

@@ -272,11 +277,11 @@ header.vff-header svg.f-logo {
272277
}
273278

274279
/*field-multiplechoicetype*/
275-
.vff ul.f-radios li{
280+
.vff ul.f-radios li {
276281
color: var(--vff-secondary-text-color);
277282
}
278283

279-
.vff .f-key{
284+
.vff .f-key {
280285
color: var(--vff-main-accent-color);
281286
font-weight: 300;
282287
}

src/assets/css/themes/theme-minimal.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ header.vff-header svg.f-logo{
233233
color: var(--vff-main-accent-color);
234234
}
235235

236+
.vff input[type=date]::-webkit-calendar-picker-indicator {
237+
filter: invert(100%);
238+
}
239+
236240
.vff span.f-answered{
237241
color: var(--vff-main-accent-color);
238242
}

src/assets/css/themes/theme-purple.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ header.vff-header svg.f-logo{
246246
.vff span.f-answered{
247247
color: var(--vff-main-accent-color);
248248
}
249+
250+
.vff ::-webkit-calendar-picker-indicator {
251+
filter: invert(100%);
252+
}
249253

250254
/*footer*/
251255
.vff-footer .f-prev.f-disabled svg,

0 commit comments

Comments
 (0)