Skip to content

Commit

Permalink
Update side navigation active / hover contexts
Browse files Browse the repository at this point in the history
This aligns closer to RailsAdmin 2.x.x, where the background of an element in the side nav changes when it's either active or hovered over - making the navigation itself easier to follow in the UI
  • Loading branch information
codealchemy committed Apr 19, 2022
1 parent 410654d commit ac50e18
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rails_admin/styles/base/theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ body.rails_admin {
> li > a {
padding: ($navbar-padding-y / 2) ($grid-gutter-width / 2);

&.active {
background-color: map-get($theme-colors, primary);
color: color-contrast(map-get($theme-colors, primary));
}

&:hover {
background-color: map-get($theme-colors, primary);
color: color-contrast(map-get($theme-colors, primary));
}

&.nav-level-1 {
padding-left: $grid-gutter-width;
}
Expand Down

0 comments on commit ac50e18

Please sign in to comment.