Skip to content

Commit

Permalink
fix: assign role and tabindex=0 to navlink-parent (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaller94 authored Feb 27, 2024
1 parent 08cfb44 commit 6b650c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{ range .Site.Menus.main.ByWeight }}
{{ if .HasChildren }}
<li class="navlinks-container">
<a class="navlinks-parent">{{ .Name }}</a>
<a class="navlinks-parent" role="button" tabindex="0">{{ .Name }}</a>
<div class="navlinks-children">
{{ range .Children }}
<a href="{{ .URL | relLangURL }}">{{ .Name }}</a>
Expand All @@ -32,7 +32,7 @@
{{ if .Site.IsMultiLingual }}
{{ if ge (len .Site.Languages) 3 }}
<li class="navlinks-container">
<a class="navlinks-parent">{{ i18n "languageSwitcherLabel" }}</a>
<a class="navlinks-parent" role="button" tabindex="0">{{ i18n "languageSwitcherLabel" }}</a>
<div class="navlinks-children">
{{ range .Translations }}
{{ if not (eq .Lang $.Site.Language.Lang) }}
Expand Down

0 comments on commit 6b650c3

Please sign in to comment.