Skip to content

Commit

Permalink
BarToggler: fix color for Bulma provider
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Feb 25, 2025
1 parent 65cdd6e commit f09e19e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Blazorise.Bulma/Providers/BulmaClassProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ public override string BarItem( BarMode mode, bool hasDropdown ) => mode == Blaz
public override string BarBrand( BarMode mode ) => mode == Blazorise.BarMode.Horizontal ? "navbar-brand" : "b-bar-brand";

public override string BarToggler( BarMode mode, BarTogglerMode togglerMode ) => mode == Blazorise.BarMode.Horizontal ? "navbar-burger" :
togglerMode == BarTogglerMode.Popout ? "b-bar-toggler-popout" : "b-bar-toggler-inline";
togglerMode == BarTogglerMode.Popout ? "b-bar-toggler-popout" : "b-bar-toggler-inline navbar-burger";

public override string BarTogglerCollapsed( BarMode mode, BarTogglerMode togglerMode, bool isShow )
=> isShow || mode != Blazorise.BarMode.Horizontal ? null : Active();
Expand Down
8 changes: 8 additions & 0 deletions Source/Blazorise.Bulma/Styles/components/_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@
}
}
}

.b-bar-vertical-inline,
.b-bar-vertical-popout,
.b-bar-vertical-small {
.navbar-burger {
color: inherit;
}
}
6 changes: 6 additions & 0 deletions Source/Blazorise.Bulma/wwwroot/blazorise.bulma.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
opacity: 0.65;
}

.b-bar-vertical-inline .navbar-burger,
.b-bar-vertical-popout .navbar-burger,
.b-bar-vertical-small .navbar-burger {
color: inherit;
}

.blockquote {
margin-bottom: 1rem;
font-size: 1.25rem;
Expand Down
2 changes: 1 addition & 1 deletion Source/Blazorise.Bulma/wwwroot/blazorise.bulma.min.css

Large diffs are not rendered by default.

0 comments on commit f09e19e

Please sign in to comment.