-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix a11y in header button #1833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bjohansebas
merged 12 commits into
expressjs:gh-pages
from
ShubhamOulkar:a11y-header-right
Mar 23, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7eb1b75
fix a11y theme btn
ShubhamOulkar 7abf668
fix a11y for language picker button
ShubhamOulkar f58105e
remove unnecessary css selectors
ShubhamOulkar 73f0822
Merge branch 'gh-pages' into a11y-header-right
ShubhamOulkar af2bd89
Rename toggleSystemTheme to setTheme
ShubhamOulkar 3bc3666
correct font url for thai and korean translations
ShubhamOulkar 177a849
fix bug: highlighting current language
ShubhamOulkar 43d6f63
add correct color on inactive links
ShubhamOulkar 1e53a9d
Merge branch 'expressjs:gh-pages' into a11y-header-right
ShubhamOulkar 25929c8
Merge branch 'gh-pages' into a11y-header-right
ShubhamOulkar 3a016df
add id on theme btn
ShubhamOulkar 0f06fd1
Merge branch 'gh-pages' into a11y-header-right
bjohansebas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,22 @@ | ||
| <div id="navbar"> | ||
| <ul id="navmenu"> | ||
| {% assign url_parts = page.url | split: '/' %} | ||
|
|
||
| {% assign url_remainder = url_parts | slice: 2, url_parts.size | join: '/' %} | ||
|
|
||
| <li class="submenu"> | ||
| <div id="current-lang" class="current-lang"></div> | ||
| <div id="languageData" | ||
| data-languages='{{ site.data.languages | jsonify }}' | ||
| style="display:none;"> | ||
| </div> | ||
| <ul class="submenu-content"> | ||
| {% for lang in site.data.languages %} | ||
| <li> | ||
| <a href="/{{ lang.code }}/{{ url_remainder }}"> | ||
| {% if lang.code | to_s == current_lang | to_s %} | ||
| <strong>{{ lang.name }}</strong> | ||
| {% else %} | ||
| {{ lang.name }} | ||
| {% endif %} | ||
| </a> | ||
| </li> | ||
| {% endfor %} | ||
| </ul> | ||
| </li> | ||
| </ul> | ||
| <div class="desktop-lang-switcher"> | ||
| {% assign url_parts = page.url | split: '/' %} | ||
| {% assign url_remainder = url_parts | slice: 2, url_parts.size | join: '/' %} | ||
| {% assign current_lang = page.lang %} | ||
| <button class="lang-btn" type="button" aria-haspopup="menu" aria-label="Change language"> | ||
| <span id="current-lang"></span> | ||
| </button> | ||
| <ul class="lang-list submenu-content" aria-labelledby="current-lang" > | ||
| {% for lang in site.data.languages %} | ||
| <li> | ||
| <a href="/{{ lang.code }}/{{ url_remainder }}"> | ||
| {% if lang.code == current_lang %} | ||
| <strong>{{ lang.name }}</strong> | ||
| {% else %} | ||
| {{ lang.name }} | ||
| {% endif %} | ||
| </a> | ||
| </li> | ||
| {% endfor %} | ||
| </ul> | ||
| <div id="languageData" data-languages='{{ site.data.languages | jsonify }}' style="display:none;"></div> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.