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

Menu label next to hamburger in top nav in 960-1200px display

parent a6b6ec25
No related branches found
No related tags found
No related merge requests found
......@@ -736,6 +736,7 @@ export namespace Components {
dataSiteHeaderLabels: string;
logoLabel?: string;
logoUrl?: string;
menuLabel: string;
menuLabelClose?: string;
menuLabelOpen?: string;
menuType: MenuType;
......@@ -2032,6 +2033,7 @@ declare namespace LocalJSX {
dataSiteHeaderLabels?: string;
logoLabel?: string;
logoUrl?: string;
menuLabel?: string;
menuLabelClose?: string;
menuLabelOpen?: string;
menuType?: MenuType;
......
......@@ -61,7 +61,7 @@
&__label {
position: relative;
width: min-content;
@include breakpoint($xlarge) {
@include breakpoint($overwide) {
width: 100%;
}
......
......@@ -12,6 +12,7 @@
| `dataSiteHeaderLabels` | `data-site-header-labels` | | `string` | `undefined` |
| `logoLabel` | `logo-label` | | `string` | `undefined` |
| `logoUrl` | `logo-url` | | `string` | `undefined` |
| `menuLabel` | `menu-label` | | `string` | `'Menu'` |
| `menuLabelClose` | `menu-label-close` | | `string` | `undefined` |
| `menuLabelOpen` | `menu-label-open` | | `string` | `undefined` |
| `menuType` | `menu-type` | | `MenuType.desktop \| MenuType.mobile \| MenuType.sidenav \| MenuType.sidepanel \| MenuType.tablet` | `MenuType.default` |
......
......@@ -101,6 +101,9 @@
@include breakpoint($narrow) {
padding: 15px 28px 15px 15px;
}
@include breakpoint($wide) {
padding: 15px 28px 15px 6px;
}
&.is-open {
position: fixed;
......@@ -139,6 +142,14 @@
}
}
}
&__menu-label {
@include font-size(14px, 24px);
@include font-weight($bold);
letter-spacing: -0.45px;
padding-right: 2px;
text-transform: uppercase;
}
}
.hy-backdrop {
......
......@@ -30,6 +30,7 @@ export class SiteHeader {
@Prop() dataSiteHeaderLabels: string;
@Prop() logoUrl?: string;
@Prop() logoLabel?: string;
@Prop() menuLabel: string = 'Menu';
@Prop() menuLabelOpen?: string;
@Prop() menuLabelClose?: string;
@Prop({reflect: true}) menuType: MenuType = MenuType.default;
......@@ -241,6 +242,14 @@ export class SiteHeader {
})}
</div>
<div class={'hy-site-header__menu-container'}>
<span
class={{
'hy-site-header__menu-label': true,
'is-visible': this.isMenuOpen,
}}
>
{this.menuLabel}
</span>
<button
onClick={() => this.mobileMenuToggle()}
class={{
......
......@@ -10,6 +10,7 @@ $narrow: 30rem; // 480px 480-767
$medium: 48rem; // 768px 768-959
$wide: 60rem; // 960px-1200px; small
$extrawide: 75.0625rem; // 1201px-1440px; mid-size
$overwide: 90.063rem; // 1441px-1600px; large-size
$xlarge: 1601px; //1601px-1920px, x-large
$fullhd: 120.0625rem; // 1921px
$max-width: $extrawide;
......@@ -161,7 +161,7 @@ export enum MenuType {
sidenav = 'sidenav',
sidepanel = 'sidepanel',
mobile = 'mobile',
tablet = 'tabled',
tablet = 'tablet',
default = 'desktop',
}
......
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