Skip to content

Commit

Permalink
Fixes #954 [HxSidebar] First level items with ExpandableContent are n…
Browse files Browse the repository at this point in the history
…ot visible if Sidebar is collapsed
  • Loading branch information
crdo committed Nov 29, 2024
1 parent 3d8ac86 commit 784ce35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
else
{
<HxDropdown Direction="DropdownDirection.End" CssClass="@CssClassHelper.Combine("hx-sidebar-item d-none", ParentSidebar.Collapsed ? ParentSidebar.ResponsiveBreakpoint.GetCssClass("d-??-block") : null)">
<HxDropdown Direction="DropdownDirection.End" CssClass="@CssClassHelper.Combine("hx-sidebar-item", ParentSidebar.Collapsed ? ParentSidebar.ResponsiveBreakpoint.GetCssClass("d-??-block") : null)">
<HxNavLink Href="@Href"
Match="Match"
OnClick="@(OnClick.HasDelegate ? InvokeOnClickAsync : null)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
::deep .hx-sidebar-item {
display: block; /*Overrides the inline flex from btn-group placed by HxDropdown*/
display: block; /* Overrides the inline flex from btn-group placed by HxDropdown */
}

::deep .hx-sidebar-item.dropend {
display: none; /* Dropdown is hidden by default and then shown whith ResponsiveBreakpoint.GetCssClass based on Sidebar settings */
}

::deep .nav-link {
Expand Down

0 comments on commit 784ce35

Please sign in to comment.