Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #29 from cjcenizal/4274/bug/local-nav-disabled-poi…
Browse files Browse the repository at this point in the history
…nter-events

Remove pointer-events: none from localBreadcrumbs and localMenuItem.
  • Loading branch information
cjcenizal authored Dec 8, 2016
2 parents 03a31af + ab2bbc8 commit 857947a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/framework/components/local_nav/_local_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@

&:last-child {
.localBreadcrumb__link {
pointer-events: none;
color: $localNavTextColor;
cursor: default;

&:hover {
text-decoration: none;
}

@include darkTheme {
color: $localNavTextColor--darkTheme;
Expand Down
13 changes: 12 additions & 1 deletion src/framework/components/local_nav/_local_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
&.localMenuItem-isDisabled {
opacity: 0.5;
cursor: default;
pointer-events: none;

&:hover {
background-color: $localNavButtonBackgroundColor;
color: $localNavButtonTextColor;
}
}

@include darkTheme {
Expand All @@ -42,6 +46,13 @@
&.localMenuItem-isSelected {
background-color: $localNavButtonBackgroundColor-isSelected--darkTheme;
}

&.localMenuItem-isDisabled {
&:hover {
background-color: transparent;
color: $localNavButtonTextColor--darkTheme;
}
}
}
}

Expand Down

0 comments on commit 857947a

Please sign in to comment.