Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix select inputs when dark mode is enabled in Twenty Twenty-One #3554

Merged
merged 2 commits into from
Dec 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions assets/js/base/components/select/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,19 @@
display: none;
}
}

.theme-twentytwentyone {
&.is-dark-theme {
// If the theme is in dark mode, as well as the block, then this selector will match.
.has-dark-controls {
.components-custom-select-control__item {
color: $input-text-dark;
}
}

// If the theme is in dark mode, but the block isn't, then this selector will match.
.components-custom-select-control__item {
color: $input-text-active;
}
}
}