Skip to content

Commit cfedfd0

Browse files
committed
Add variable to customize the background color of the dropdown
1 parent 2abddb1 commit cfedfd0

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

MeiliSearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default {
170170
div[data-ds-theme="dark"]
171171
.meilisearch-autocomplete
172172
.dsb-dropdown-menu [class^=dsb-dataset-], .docs-searchbar-suggestion
173-
background lighten($bgDarkColor, 10%)
173+
background $msDropdownBgDarkColor
174174
175175
// Searchbox
176176
input

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ $msAccentDarkColor
131131
$msInputDarkBgColor
132132
$msTextDarkColor
133133
$borderDarkColor
134+
$msDropdownBgDarkColor
134135
```
135136

136137
You can also find an example in our [playground's `palette.styl` file](./playground/.vuepress/styles/palette.styl)

playground/.vuepress/styles/palette.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ $msInputDarkBgColor = #444d52
55

66
$msTextDarkColor = #eaeaea
77

8-
$borderDarkColor = lighten($msInputDarkBgColor, 10%)
8+
$msBorderDarkColor = lighten($msInputDarkBgColor, 10%)

styles/palette.styl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ $msInputDarkBgColor ?= #444d52
55

66
$msTextDarkColor ?= #eaeaea
77

8-
$msBorderDarkColor ?= lighten($msInputDarkBgColor, 10%)
8+
$msBorderDarkColor ?= lighten($msInputDarkBgColor, 10%)
9+
10+
$msDropdownBgDarkColor ?= darken($msInputDarkBgColor, 25%)

0 commit comments

Comments
 (0)