|
1 | 1 | <header class="gdoc-header">
|
2 | 2 | <div class="container flex align-center justify-between">
|
3 | 3 | {{ if .MenuEnabled }}
|
4 |
| - <label for="menu-control" class="gdoc-nav__control" tabindex="0"> |
5 |
| - <svg class="gdoc-icon gdoc_menu"> |
6 |
| - <title>{{ i18n "button_nav_open" }}</title> |
7 |
| - <use xlink:href="#gdoc_menu"></use> |
8 |
| - </svg> |
9 |
| - <svg class="gdoc-icon gdoc_arrow_back"> |
10 |
| - <title>{{ i18n "button_nav_close" }}</title> |
11 |
| - <use xlink:href="#gdoc_arrow_back"></use> |
12 |
| - </svg> |
| 4 | + <label for="menu-control" class="gdoc-nav__control"> |
| 5 | + <div tabindex="0" role="button" aria-pressed="false"> |
| 6 | + <input type="checkbox" class="hidden" id="menu-control" /> |
| 7 | + |
| 8 | + <svg class="gdoc-icon gdoc_menu"> |
| 9 | + <title>{{ i18n "button_nav_open" }}</title> |
| 10 | + <use xlink:href="#gdoc_menu"></use> |
| 11 | + </svg> |
| 12 | + <svg class="gdoc-icon gdoc_arrow_back"> |
| 13 | + <title>{{ i18n "button_nav_close" }}</title> |
| 14 | + <use xlink:href="#gdoc_arrow_back"></use> |
| 15 | + </svg> |
| 16 | + </div> |
13 | 17 | </label>
|
14 | 18 | {{ end }}
|
15 | 19 | <div>
|
|
24 | 28 | </span>
|
25 | 29 | </a>
|
26 | 30 | </div>
|
27 |
| - <div class="gdoc-menu-header"> |
| 31 | + <div class="gdoc-menu-header flex gap-16"> |
28 | 32 | <span class="gdoc-menu-header__items">
|
29 | 33 | {{ if .Root.Site.Data.menu.extra.header }}
|
30 | 34 | {{ partial "menu-extra" (dict "current" .Root "source" .Root.Site.Data.menu.extra.header "target" "header") }}
|
31 | 35 | {{ end }}
|
32 | 36 |
|
33 | 37 |
|
34 |
| - <span id="gdoc-color-theme"> |
| 38 | + <span id="gdoc-color-theme" tabindex="0" role="button" aria-pressed="false"> |
35 | 39 | <svg class="gdoc-icon gdoc_brightness_dark">
|
36 | 40 | <title>{{ i18n "button_toggle_dark" }}</title>
|
37 | 41 | <use xlink:href="#gdoc_brightness_dark"></use>
|
|
56 | 60 | </span>
|
57 | 61 |
|
58 | 62 | {{ partial "language" .Root }}
|
| 63 | + </span> |
| 64 | + <span class="gdoc-menu-header__control"> |
| 65 | + <label for="menu-header-control"> |
| 66 | + <div tabindex="0" role="button" aria-pressed="false"> |
| 67 | + <input type="checkbox" class="hidden" id="menu-header-control" /> |
59 | 68 |
|
60 |
| - |
61 |
| - <span class="gdoc-menu-header__control"> |
62 |
| - <label for="menu-header-control"> |
63 | 69 | <svg class="gdoc-icon gdoc_keyboard_arrow_right">
|
64 | 70 | <use xlink:href="#gdoc_keyboard_arrow_right"></use>
|
65 | 71 | <title>{{ i18n "button_menu_close" }}</title>
|
66 | 72 | </svg>
|
67 |
| - </label> |
68 |
| - </span> |
| 73 | + |
| 74 | + <svg class="gdoc-icon gdoc_keyboard_arrow_left"> |
| 75 | + <use xlink:href="#gdoc_keyboard_arrow_left"></use> |
| 76 | + <title>{{ i18n "button_menu_open" }}</title> |
| 77 | + </svg> |
| 78 | + </div> |
| 79 | + </label> |
69 | 80 | </span>
|
70 |
| - <label for="menu-header-control" class="gdoc-menu-header__control"> |
71 |
| - <svg class="gdoc-icon gdoc_keyboard_arrow_left"> |
72 |
| - <use xlink:href="#gdoc_keyboard_arrow_left"></use> |
73 |
| - <title>{{ i18n "button_menu_open" }}</title> |
74 |
| - </svg> |
75 |
| - </label> |
76 | 81 | </div>
|
77 | 82 | </div>
|
78 | 83 | </header>
|
0 commit comments