-
Notifications
You must be signed in to change notification settings - Fork 9
Accessibility fixes: moderate violations #1338
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| {% include "partials/tags.html" %} | ||
| {% include "partials/actions.html" %} | ||
| {% if "<h1" not in page.content %} | ||
| <h1>{{ page.title | d(config.site_name, true)}}</h1> | ||
| {% endif %} | ||
| {{ page.content }} | ||
| {% include "partials/feedback.html" %} | ||
| {% include "partials/comments.html" %} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,10 +120,21 @@ | |
| </div> | ||
| {% endif %} | ||
| <nav class="md-nav" data-md-level="{{ level }}" aria-labelledby="{{ path }}_label"> | ||
| <label class="md-nav__title" for="{{ path }}" {% if index and nav_item.children | length <= 1 %}id="{{ path }}_label"{% endif %}> | ||
| <span class="md-nav__icon md-icon"></span> | ||
| {{ render_title(nav_item) }} | ||
| </label> | ||
| {% if index and nav_item.children | length <= 1 %} | ||
| <label class="md-nav__title" for="{{ path }}" id="{{ path }}_label"> | ||
| <span class="md-nav__icon md-icon"></span> | ||
| {{ render_title(nav_item) }} | ||
| </label> | ||
| {% else %} | ||
| {# The opener above (id="{{ path }}_label") already labels this checkbox; | ||
| a second <label for> here would give the field two labels. This title | ||
| bar still needs to collapse the section on tap/click, so it's a button | ||
| wired up in general.js instead of a real label. #} | ||
| <div class="md-nav__title" role="button" tabindex="0" data-md-toggle-checkbox="{{ path }}"> | ||
| <span class="md-nav__icon md-icon"></span> | ||
| {{ render_title(nav_item) }} | ||
| </div> | ||
|
Comment on lines
+133
to
+136
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Aha! Ye've turned the label into a |
||
| {% endif %} | ||
| <ul class="md-nav__list" data-md-scrollfix> | ||
| {% for item in nav_item.children %} | ||
| {% if not index or item != index %} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| <div class="md-search" data-md-component="search" role="dialog"> | ||
| {# __search's header button (partials/header.html) is already a <label for="__search">; | ||
| the overlay and in-box icon below are click/keyboard toggles for the same checkbox, | ||
| not additional field labels, so they're wired up in general.js instead. #} | ||
| <div class="md-search__overlay" data-md-toggle-checkbox="__search"></div> | ||
| <div class="md-search__inner" role="search"> | ||
| <form class="md-search__form" name="search"> | ||
| <input type="text" class="md-search__input" name="query" aria-label="{{ lang.t('search.placeholder') }}" placeholder="{{ lang.t('search.placeholder') }}" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required> | ||
| <div class="md-search__icon md-icon" data-md-toggle-checkbox="__search"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avast! Ye've turned the search icon into a plain |
||
| {% set icon = config.theme.icon.search or "material/magnify" %} | ||
| {% include ".icons/" ~ icon ~ ".svg" %} | ||
| {% set icon = config.theme.icon.previous or "material/arrow-left" %} | ||
| {% include ".icons/" ~ icon ~ ".svg" %} | ||
| </div> | ||
| <nav class="md-search__options" aria-label="{{ lang.t('search') }}"> | ||
| {% if "search.share" in features %} | ||
| <a href="javascript:void(0)" class="md-search__icon md-icon" title="{{ lang.t('search.share') }}" aria-label="{{ lang.t('search.share') }}" data-clipboard data-clipboard-text="" data-md-component="search-share" tabindex="-1"> | ||
| {% set icon = config.theme.icon.share or "material/share-variant" %} | ||
| {% include ".icons/" ~ icon ~ ".svg" %} | ||
| </a> | ||
| {% endif %} | ||
| <button type="reset" class="md-search__icon md-icon" title="{{ lang.t('search.reset') }}" aria-label="{{ lang.t('search.reset') }}" tabindex="-1"> | ||
| {% set icon = config.theme.icon.close or "material/close" %} | ||
| {% include ".icons/" ~ icon ~ ".svg" %} | ||
| </button> | ||
| </nav> | ||
| {% if "search.suggest" in features %} | ||
| <div class="md-search__suggest" data-md-component="search-suggest"></div> | ||
| {% endif %} | ||
| </form> | ||
| <div class="md-search__output"> | ||
| <div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix role="region" aria-label="{{ lang.t('search') }}"> | ||
| <div class="md-search-result" data-md-component="search-result"> | ||
| <div class="md-search-result__meta"> | ||
| {{ lang.t("search.result.initializer") }} | ||
| </div> | ||
| <ol class="md-search-result__list" role="presentation"></ol> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blimey! What sort of map are ye readin'? By overridin'
block containerand replacin' it with just themd-contentdiv, ye've completely scuttled the ship's main grid! The sidebar navigation (site_nav) and the table of contents are gone to Davy Jones' locker!Ye've already overridden
partials/content.htmlto customize the inner content. There be absolutely no need to blow up the entire container. Revert this back to overridin'block contentas it was before, or the whole layout will sink to the bottom of the sea!