Kaynağa Gözat

fix(axe): accessibility improvements

George Cushen 4 yıl önce
ebeveyn
işleme
9e64cb52c7

+ 1 - 1
wowchemy/assets/scss/wowchemy/_widgets.scss

@@ -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 - 0
wowchemy/i18n/en.yaml

@@ -34,6 +34,9 @@
 
 # Themes
 
+- id: theme_selector
+  translation: Display preferences
+
 - id: theme_light
   translation: Light
 

+ 1 - 1
wowchemy/layouts/partials/li_card.html

@@ -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
wowchemy/layouts/partials/navbar.html

@@ -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">