Skip to content

Commit 09c98e1

Browse files
authored
[dev-v5] Fix AppBar popover background color issue (#4448)
* Fix AppBar popover background color issue * Use auto instead of scroll * Add missing space * Use a class for styling the AppBar popover
1 parent e5efec6 commit 09c98e1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Core/Components/AppBar/FluentAppBar.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
OffsetVertical="-48"
4040
OffsetHorizontal="68">
4141
<ChildContent>
42-
<div style="width: 320px; height: 200px; padding: 1rem;">
42+
<div class="fluent-appbar-popover">
4343
@if (PopoverShowSearch)
4444
{
4545
<FluentTextInput @bind-Value="@_searchTerm"
@@ -55,7 +55,7 @@
5555
</StartTemplate>
5656
</FluentTextInput>
5757
}
58-
<FluentGrid Justify="JustifyContent.FlexStart" Spacing="3" Style="margin-top: 2px">
58+
<FluentGrid Justify="JustifyContent.FlexStart" Spacing="3" Style="margin-top: 2px; background-color: inherit;">
5959
@foreach (var item in _searchResults)
6060
{
6161
<FluentGridItem xs="4" Style="width: 100px; height: 85px; display: flex; height: 85px; align-content: center; flex-wrap: wrap; justify-content: center;">

src/Core/Components/AppBar/FluentAppBar.razor.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
--appbar-item-size: 68;
33
background-color: var(--colorNeutralBackground2);
44
}
5-
.fluent-appbar fluent-popover-b > div {
5+
.fluent-appbar fluent-popover-b .fluent-appbar-popover {
6+
width: 320px;
7+
height: 200px;
8+
padding: 1rem;
9+
overflow: auto;
610
background-color: var(--colorNeutralBackground2);
711
}
812

0 commit comments

Comments
 (0)