From 88aeebcdf8edb2939ea8b368110851d755107587 Mon Sep 17 00:00:00 2001 From: Cindy Qi Li Date: Wed, 15 May 2024 20:10:46 -0400 Subject: [PATCH] fix: fix accessibility errors and a bug in render_wordle --- src/js/render_wordle.js | 4 +--- src/scss/components/_wordle.scss | 10 ++++++---- src/wordle.njk | 10 ++++------ 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/js/render_wordle.js b/src/js/render_wordle.js index 3dad84be..43137b60 100644 --- a/src/js/render_wordle.js +++ b/src/js/render_wordle.js @@ -1,8 +1,6 @@ "use strict"; -/* global d3, wordle_globals */ - -var inverted_wordles = {}; +/* global d3, wordle_globals, inverted_wordles */ inverted_wordles.stringTemplateRegex = /\${([^\}]*)}/g; diff --git a/src/scss/components/_wordle.scss b/src/scss/components/_wordle.scss index c71c471e..83b76b80 100644 --- a/src/scss/components/_wordle.scss +++ b/src/scss/components/_wordle.scss @@ -3,10 +3,6 @@ flex-direction: column; margin: auto; - h1 { - margin: auto; - } - .wordle-controls { display: flex; flex-direction: column; @@ -50,6 +46,12 @@ } } + .tts-checkbox, + .apply-conventional { + display: flex; + flex-direction: row; + } + .wordleRender svg { height: 100%; width: 100%; diff --git a/src/wordle.njk b/src/wordle.njk index 20f39c3a..24fef29b 100644 --- a/src/wordle.njk +++ b/src/wordle.njk @@ -13,8 +13,6 @@ permalink: "/wordle/" };
-

{{ question.question }}

-
{# Use "viewBox" and "preserveAspectRatio" to ensure the svg fits into viewports with different aspect ratios for the responsive design. #} @@ -24,24 +22,24 @@ permalink: "/wordle/"
-
*Unable to activate VoiceOver. Your browser version or config does not support web speech API*
-