Skip to content

Commit

Permalink
Differentiate between dark and light theme for NcDateTimePickerNative
Browse files Browse the repository at this point in the history
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
  • Loading branch information
JuliaKirschenheuter authored and emoral435 committed Dec 20, 2023
1 parent 009280d commit ac4e3a9
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 @@ -385,4 +385,18 @@ export default {
flex: 0 0 auto;
padding-right: 4px;
}
[data-theme-light],
[data-themes*=light] {
.native-datetime-picker--input {
color-scheme: light;
}
}
[data-theme-dark],
[data-themes*=dark] {
.native-datetime-picker--input {
color-scheme: dark;
}
}
</style>

0 comments on commit ac4e3a9

Please sign in to comment.