fix(axe): accessibility improvements

This commit is contained in:
George Cushen committed 2020-11-22 20:42:42 +00:00
1 parent 1370a7faa1
commit 9e64cb52c7
4 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@
.home-section.dark h2,
.home-section.dark h3,
.home-section.dark a:not(.btn) {
color: rgb(248, 248, 242);
color: #fff;
}
/* Underline links in dark sections to separate them from text */
+3
View File
@@ -34,6 +34,9 @@
# Themes
- id: theme_selector
translation: Display preferences
- id: theme_light
translation: Light
+1 -1
View File
@@ -43,7 +43,7 @@
{{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }}
{{ $anchor := $item.Params.image.focal_point | default "Smart" }}
{{ with $resource }}
{{ $image := .Fill (printf "918x517 q90 %s" $anchor) }}
{{ $image := .Fill (printf "808x455 %s" $anchor) }}
<a href="{{ $item.RelPermalink }}">
<div class="img-hover-zoom"><img src="{{ $image.RelPermalink }}" class="article-banner" alt="{{ $item.Title }}"></div>
</a>
+1 -1
View File
@@ -149,7 +149,7 @@
{{ $show_day_night := site.Params.main_menu.show_day_night | default true }}
{{ if and site.Params.day_night $show_day_night }}
<li class="nav-item dropdown theme-dropdown">
<a href="#" class="nav-link" data-toggle="dropdown" aria-haspopup="true">
<a href="#" class="nav-link" data-toggle="dropdown" aria-haspopup="true" aria-label="{{ i18n "theme_selector" | default "Display preferences" }}">
<i class="fas fa-moon" aria-hidden="true"></i>
</a>
<div class="dropdown-menu">