Added link to side menu header and fixed styling

This commit is contained in:
Hugo Häggmark 2019-01-22 08:12:48 +01:00
parent 96d28703f7
commit a6428fef0c
3 changed files with 25 additions and 11 deletions

View File

@ -10,7 +10,9 @@ const SideMenuDropDown: FC<Props> = props => {
return (
<ul className="dropdown-menu dropdown-menu--sidemenu" role="menu">
<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>
{link.children &&
link.children.map((child, index) => {

View File

@ -8,11 +8,14 @@ exports[`Render should render children 1`] = `
<li
className="side-menu-header"
>
<span
className="sidemenu-item-text"
>
link
</span>
<a>
<span
className="sidemenu-item-text"
>
link
</span>
</a>
</li>
<DropDownChild
child={
@ -49,11 +52,14 @@ exports[`Render should render component 1`] = `
<li
className="side-menu-header"
>
<span
className="sidemenu-item-text"
>
link
</span>
<a>
<span
className="sidemenu-item-text"
>
link
</span>
</a>
</li>
</ul>
`;

View File

@ -149,6 +149,12 @@
color: #ebedf2;
}
.side-menu-header > a {
// Removes left-brand-border-gradient from link
border: none !important;
padding: 0 !important;
}
.sidemenu-subtitle {
padding: 0.5rem 1rem 0.5rem;
font-size: $font-size-sm;