Skip to content

Commit

Permalink
Show highlighted text color for single "tab" items in navigation
Browse files Browse the repository at this point in the history
This adds a simple CSS rule to highlight the navigation item to be highlighted as though it's active
without adding the underline.

The rule is very specific, which plays into the discussion in #7364. As a follow-up to this, we should
create a bread crumb element to add that auto-builds these kind of things so that plugin authors do not
need to even know the rules in place. This should help to keep all plugins consistent as well as simplify
the effort to make it work.
  • Loading branch information
pickypg committed Jun 7, 2016
1 parent 4a49885 commit c145ed6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/public/styles/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
margin: 0 10px;
border-bottom: 2px solid transparent;
}
// singular tabs are treated as titles
> li:only-child > a {
color: @kibanaGray1;
}
// Active, hover state for the getTabs
> .active > a,
> .active > a:hover,
Expand Down

0 comments on commit c145ed6

Please sign in to comment.