hugo-theme-stack
hugo-theme-stack copied to clipboard
Improve sidebar bottom menu accessibility
-
Move
<div class="menu-bottom-section">
outside<ol class="menu" id="main-menu">
to fix warning<li> elements must be contained in a <ul> or <ol>
-
Add
title="language"
to language select menu to fix errorSelect element must have an accessible name: Element has no title attribute
The appearance is identical after change.
Before:
After:
(redacted)
Note that #950 is targeting the same section of code, so once either one is merged, the other one needs to be rebased.
@TheJiahao Could you confirm this change works fine in mobile size? I tried to cherry-pick this change to v4 branch, it seems that the language switcher disappeared.
@cubercsl I can confirm that the bottom menu including language and theme switch is not showing in mobile. This will be fixed in PR #966.