Skip to content

Commit

Permalink
Create possibility to change a color theme for native datetime picker…
Browse files Browse the repository at this point in the history
… on system default theme

Signed-off-by: julia.kirschenheuter <[email protected]>
  • Loading branch information
JuliaKirschenheuter committed Jan 30, 2024
1 parent c39a056 commit c8f7840
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/NcDateTimePickerNative/NcDateTimePickerNative.vue
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,18 @@ export default {
color-scheme: dark;
}
}

[data-theme-default],
[data-themes*=default] {
@media (prefers-color-scheme: light) {
.native-datetime-picker--input {
color-scheme: light;
}
}
@media (prefers-color-scheme: dark) {
.native-datetime-picker--input {
color-scheme: dark;
}
}
}
</style>

0 comments on commit c8f7840

Please sign in to comment.