Skip to content

Commit cba58be

Browse files
authored
feat(MeilSearch): add kbd style for dark theme (#522)
* style: 适配暗黑模式 * chore: bump version 9.1.10
1 parent 02bd40f commit cba58be

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/components/BootstrapBlazor.MeiliSearch/BootstrapBlazor.MeiliSearch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.1.9</Version>
4+
<Version>9.1.10</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.MeiliSearch/wwwroot/meilisearch.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
font-style: normal;
2323
}
2424

25+
.search-dialog-mask kbd {
26+
color: var(--bb-global-search-footer-kbd-color);
27+
}
28+
2529
.search-dialog-mask {
2630
position: fixed;
2731
top: 0;
@@ -33,6 +37,10 @@
3337
justify-content: center;
3438
}
3539

40+
[data-bs-theme='dark'] .search-dialog-mask {
41+
--bb-global-search-footer-kbd-color: var(--bs-body-color);
42+
}
43+
3644
.bb-g-search-open {
3745
overflow: hidden;
3846
}

0 commit comments

Comments
 (0)