From 9e64cb52c7b680b0f0731afe1d4fd0e2178618c4 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 22 Nov 2020 20:42:42 +0000 Subject: [PATCH] fix(axe): accessibility improvements --- wowchemy/assets/scss/wowchemy/_widgets.scss | 2 +- wowchemy/i18n/en.yaml | 3 +++ wowchemy/layouts/partials/li_card.html | 2 +- wowchemy/layouts/partials/navbar.html | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wowchemy/assets/scss/wowchemy/_widgets.scss b/wowchemy/assets/scss/wowchemy/_widgets.scss index baa42895..3f98f695 100644 --- a/wowchemy/assets/scss/wowchemy/_widgets.scss +++ b/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 */ diff --git a/wowchemy/i18n/en.yaml b/wowchemy/i18n/en.yaml index fa82e6db..1e39f86d 100644 --- a/wowchemy/i18n/en.yaml +++ b/wowchemy/i18n/en.yaml @@ -34,6 +34,9 @@ # Themes +- id: theme_selector + translation: Display preferences + - id: theme_light translation: Light diff --git a/wowchemy/layouts/partials/li_card.html b/wowchemy/layouts/partials/li_card.html index d8f1ebf6..5cf2e28e 100644 --- a/wowchemy/layouts/partials/li_card.html +++ b/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) }}
{{ $item.Title }}
diff --git a/wowchemy/layouts/partials/navbar.html b/wowchemy/layouts/partials/navbar.html index 258d8e6b..db72a756 100644 --- a/wowchemy/layouts/partials/navbar.html +++ b/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 }}