Skip to content

Commit ac50e18

Browse files
committed
Update side navigation active / hover contexts
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
1 parent 410654d commit ac50e18

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/rails_admin/styles/base/theming.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ body.rails_admin {
4242
> li > a {
4343
padding: ($navbar-padding-y / 2) ($grid-gutter-width / 2);
4444

45+
&.active {
46+
background-color: map-get($theme-colors, primary);
47+
color: color-contrast(map-get($theme-colors, primary));
48+
}
49+
50+
&:hover {
51+
background-color: map-get($theme-colors, primary);
52+
color: color-contrast(map-get($theme-colors, primary));
53+
}
54+
4555
&.nav-level-1 {
4656
padding-left: $grid-gutter-width;
4757
}

0 commit comments

Comments
 (0)