Skip to content
Snippets Groups Projects
Commit e532ef29 authored by druid's avatar druid
Browse files

desktop nav: positioning shortcuts block

parent ae6b3e70
No related branches found
No related tags found
No related merge requests found
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
} }
&__desktop-menu { &__desktop-menu {
display: flex;
position: relative; position: relative;
// first level link inside panel // first level link inside panel
...@@ -238,6 +239,7 @@ ...@@ -238,6 +239,7 @@
// Shortcuts // Shortcuts
.shortcuts-panel { .shortcuts-panel {
list-style: none; list-style: none;
margin-left: 48px;
&__title { &__title {
@include font-size(18px, 22px); @include font-size(18px, 22px);
...@@ -267,8 +269,6 @@ ...@@ -267,8 +269,6 @@
text-decoration: none; text-decoration: none;
.icon { .icon {
position: absolute;
right: 0;
svg { svg {
padding: 4px; padding: 4px;
} }
......
...@@ -107,30 +107,32 @@ export class HyDesktopMenuLinks { ...@@ -107,30 +107,32 @@ export class HyDesktopMenuLinks {
</button> </button>
<div class="hy-desktop-menu-panel" onMouseLeave={() => this.handleDesktopMenuClose()}> <div class="hy-desktop-menu-panel" onMouseLeave={() => this.handleDesktopMenuClose()}>
<div class="hy-desktop-menu-panel__desktop-menu"> <div class="hy-desktop-menu-panel__desktop-menu">
<a <div class="hy-desktop-menu-panel__desktop-menu__menu-items">
aria-current={label} <a
href={url} aria-current={label}
class="hy-desktop-menu-panel__desktop-menu__first-level-menu-item" href={url}
menu-link-id={id} class="hy-desktop-menu-panel__desktop-menu__first-level-menu-item"
> menu-link-id={id}
<span class="heading-icon"> >
<hy-icon icon={'hy-icon-arrow-right'} size={40} /> <span class="heading-icon">
</span> <hy-icon icon={'hy-icon-arrow-right'} size={40} />
<span class="label">{label}</span> </span>
{description && <span class="description">{description}</span>} <span class="label">{label}</span>
</a> {description && <span class="description">{description}</span>}
<ul class={'hy-desktop-menu-panel__desktop-menu__second-level-menu'} menu-link-id={id}> </a>
{items.map(({label, url}) => ( <ul class={'hy-desktop-menu-panel__desktop-menu__second-level-menu'} menu-link-id={id}>
<li> {items.map(({label, url}) => (
<a href={url}> <li>
<span class="heading-icon"> <a href={url}>
<hy-icon icon={'hy-icon-caret-right'} size={12} /> <span class="heading-icon">
</span> <hy-icon icon={'hy-icon-caret-right'} size={12} />
<span class="label">{label}</span> </span>
</a> <span class="label">{label}</span>
</li> </a>
))} </li>
</ul> ))}
</ul>
</div>
{shortcuts.length > 0 && ( {shortcuts.length > 0 && (
<ul class="shortcuts-panel"> <ul class="shortcuts-panel">
<h2 class="shortcuts-panel__title">{'Shortcuts'}</h2> <h2 class="shortcuts-panel__title">{'Shortcuts'}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment