Skip to content

Commit

Permalink
Fix: Adds mobile navigation for styleguide docs (#852)
Browse files Browse the repository at this point in the history
Co-authored-by: Niclas Norin <[email protected]>
  • Loading branch information
NiclasNorin and Niclas Norin authored Oct 18, 2023
1 parent 374365a commit bea295a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions views/layout/containers/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
@section('content')
<div class="container--home">
@yield('hero')

@sidebar([
'logo' => '/assets/img/logotype-grey-full.svg',
'items' => $sideNavigation,
'classList' => ['l-docs--sidebar', 'c-sidebar--fixed', 'u-display--none@md', 'u-display--none@lg', 'u-display--none@xl'],
'attributeList' => [
'js-toggle-item' => 'js-mobile-sidebar',
'js-toggle-class' => 'c-sidebar--collapsed'
],
])

@endsidebar

<section>
<article class="article">
Expand Down

0 comments on commit bea295a

Please sign in to comment.