Skip to content

Commit

Permalink
Merge pull request #4981 from nextcloud-libraries/fix/42392-Create_po…
Browse files Browse the repository at this point in the history
…ssibility_to_change_a_color_theme_for_native_datetime_picker_on_dark_theme

Differentiate between dark and light theme for NcDateTimePickerNative
  • Loading branch information
emoral435 authored Dec 20, 2023
2 parents 009280d + ac4e3a9 commit c910776
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 c910776

Please sign in to comment.