Skip to content

Commit

Permalink
update: fix dark mode for cmdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalesi committed May 28, 2024
1 parent 6fb414a commit 564267e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/shared/components/FullTextSearch/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,32 @@
padding: 10px;
color: #333;
user-select: none;
border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
.cmdk-list-item {
background: white;
color: black;

&:hover {
background: #efefef !important;
box-shadow: 0 2px 12px 0px rgba($color: white, $alpha: 0.14);
color: black;
.item-title {
color: #333;
}
}
}

.search-for-placeholder {
background-color: white;
color: #101827;
}

.ant-empty {
.ant-empty-description {
color: white;
}
}
}

0 comments on commit 564267e

Please sign in to comment.