Commit aaad9e3e by Torkel Ödegaard Committed by GitHub

Merge pull request #15057 from grafana/hugoh/sidemenu-dropdown-looks-funky-in-light-theme

Makes the clickable side menu header look great in light theme again
parents d1608510 bd745959
......@@ -10,7 +10,7 @@ const SideMenuDropDown: FC<Props> = props => {
return (
<ul className="dropdown-menu dropdown-menu--sidemenu" role="menu">
<li className="side-menu-header">
<a href={link.url}>
<a className="side-menu-header-link" href={link.url}>
<span className="sidemenu-item-text">{link.text}</span>
</a>
</li>
......
......@@ -8,7 +8,9 @@ exports[`Render should render children 1`] = `
<li
className="side-menu-header"
>
<a>
<a
className="side-menu-header-link"
>
<span
className="sidemenu-item-text"
>
......@@ -51,7 +53,9 @@ exports[`Render should render component 1`] = `
<li
className="side-menu-header"
>
<a>
<a
className="side-menu-header-link"
>
<span
className="sidemenu-item-text"
>
......
......@@ -149,12 +149,19 @@
color: #ebedf2;
}
.side-menu-header > a {
.side-menu-header-link {
// Removes left-brand-border-gradient from link
color: #ebedf2 !important;
border: none !important;
padding: 0 !important;
}
.dropdown-menu--sidemenu > li > .side-menu-header-link:hover {
// Makes sure it looks good on light theme
color: #fff !important;
background-color: $side-menu-item-hover-bg !important;
}
.sidemenu-subtitle {
padding: 0.5rem 1rem 0.5rem;
font-size: $font-size-sm;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment