mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added link to side menu header and fixed styling
This commit is contained in:
parent
96d28703f7
commit
a6428fef0c
@ -10,7 +10,9 @@ const SideMenuDropDown: FC<Props> = props => {
|
|||||||
return (
|
return (
|
||||||
<ul className="dropdown-menu dropdown-menu--sidemenu" role="menu">
|
<ul className="dropdown-menu dropdown-menu--sidemenu" role="menu">
|
||||||
<li className="side-menu-header">
|
<li className="side-menu-header">
|
||||||
<span className="sidemenu-item-text">{link.text}</span>
|
<a href={link.url}>
|
||||||
|
<span className="sidemenu-item-text">{link.text}</span>{' '}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{link.children &&
|
{link.children &&
|
||||||
link.children.map((child, index) => {
|
link.children.map((child, index) => {
|
||||||
|
@ -8,11 +8,14 @@ exports[`Render should render children 1`] = `
|
|||||||
<li
|
<li
|
||||||
className="side-menu-header"
|
className="side-menu-header"
|
||||||
>
|
>
|
||||||
<span
|
<a>
|
||||||
className="sidemenu-item-text"
|
<span
|
||||||
>
|
className="sidemenu-item-text"
|
||||||
link
|
>
|
||||||
</span>
|
link
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<DropDownChild
|
<DropDownChild
|
||||||
child={
|
child={
|
||||||
@ -49,11 +52,14 @@ exports[`Render should render component 1`] = `
|
|||||||
<li
|
<li
|
||||||
className="side-menu-header"
|
className="side-menu-header"
|
||||||
>
|
>
|
||||||
<span
|
<a>
|
||||||
className="sidemenu-item-text"
|
<span
|
||||||
>
|
className="sidemenu-item-text"
|
||||||
link
|
>
|
||||||
</span>
|
link
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
`;
|
`;
|
||||||
|
@ -149,6 +149,12 @@
|
|||||||
color: #ebedf2;
|
color: #ebedf2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.side-menu-header > a {
|
||||||
|
// Removes left-brand-border-gradient from link
|
||||||
|
border: none !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.sidemenu-subtitle {
|
.sidemenu-subtitle {
|
||||||
padding: 0.5rem 1rem 0.5rem;
|
padding: 0.5rem 1rem 0.5rem;
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
|
Loading…
Reference in New Issue
Block a user