Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(nav-sidebar): current route highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkF committed Mar 26, 2018
1 parent 89bd15d commit 357e4b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions app/mixins/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default Ember.Mixin.create({
{
title: 'Inventory',
iconClass: 'octicon-package',
route: 'inventory.index',
route: 'inventory',
capability: 'inventory',
subnav: [
{
Expand Down Expand Up @@ -45,7 +45,7 @@ export default Ember.Mixin.create({
{
title: 'Patients',
iconClass: 'octicon-organization',
route: 'patients.index',
route: 'patients',
capability: 'patients',
subnav: [
{
Expand Down Expand Up @@ -84,7 +84,7 @@ export default Ember.Mixin.create({
{
title: 'Scheduling',
iconClass: 'octicon-calendar',
route: 'appointments.index',
route: 'appointments',
capability: 'appointments',
subnav: [
{
Expand Down Expand Up @@ -136,7 +136,7 @@ export default Ember.Mixin.create({
{
title: 'Imaging',
iconClass: 'octicon-device-camera',
route: 'imaging.index',
route: 'imaging',
capability: 'imaging',
subnav: [
{
Expand All @@ -163,7 +163,7 @@ export default Ember.Mixin.create({
{
title: 'Medication',
iconClass: 'octicon-file-text',
route: 'medication.index',
route: 'medication',
capability: 'medication',
subnav: [
{
Expand Down Expand Up @@ -204,7 +204,7 @@ export default Ember.Mixin.create({
{
title: 'Labs',
iconClass: 'octicon-microscope',
route: 'labs.index',
route: 'labs',
capability: 'labs',
subnav: [
{
Expand All @@ -231,7 +231,7 @@ export default Ember.Mixin.create({
{
title: 'Billing',
iconClass: 'octicon-credit-card',
route: 'invoices.index',
route: 'invoices',
capability: 'invoices',
subnav: [
{
Expand Down Expand Up @@ -297,7 +297,7 @@ export default Ember.Mixin.create({
{
title: 'Administration',
iconClass: 'octicon-person',
route: 'admin.lookup',
route: 'admin',
capability: 'admin',
subnav: [
{
Expand Down
3 changes: 2 additions & 1 deletion app/styles/components/_sidebar_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@
color: $sidebar_sublink_text;
font-size: 15px;

&:hover {
&:hover,
&.active {
background: $navy_mid;
color: $white;

Expand Down

0 comments on commit 357e4b5

Please sign in to comment.