Skip to content

Commit

Permalink
fix: handle prefers-color-scheme (#1285)
Browse files Browse the repository at this point in the history
* fix: handle prefers-color-scheme
  • Loading branch information
felix-ico authored Nov 3, 2022
1 parent c501409 commit b889334
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/components/src/components/dropdown/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,23 @@ to fix bug in Firefox/Windows, see https://github.com/telekom/scale/issues/1018)
[data-mode='dark'] .dropdown--disabled .input__dropdown {
background-color: var(--telekom-color-background-canvas);
}

@media (prefers-color-scheme: dark) {
.dropdown .input__dropdown {
background-color: var(--telekom-color-background-canvas);
}

.dropdown:not(.dropdown--disabled):not(.dropdown--status-error)
.input__dropdown:hover {
background-color: #1b1b1b;
}

.dropdown:not(.dropdown--disabled).dropdown--status-error
.input__dropdown:hover {
background-color: #1b1b1b;
}

.dropdown--disabled .input__dropdown {
background-color: var(--telekom-color-background-canvas);
}
}

0 comments on commit b889334

Please sign in to comment.