From e41a39e3161b1ac1b6fa1ce8846567a903e6bc11 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 10 Jan 2023 20:56:28 -0500 Subject: [PATCH 1/4] Hide selectable algorithm step markers by selector rather than inline style --- css/elements.css | 4 ++++ js/listNumbers.js | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/css/elements.css b/css/elements.css index 11b83b98..1c87a879 100644 --- a/css/elements.css +++ b/css/elements.css @@ -187,6 +187,10 @@ emu-alg ol.nested-lots ol { list-style-type: lower-roman; } +emu-alg [aria-hidden=true] { + font-size: 0; +} + emu-eqn { display: block; margin-left: 4em; diff --git a/js/listNumbers.js b/js/listNumbers.js index ed98b087..78192cc1 100644 --- a/js/listNumbers.js +++ b/js/listNumbers.js @@ -14,7 +14,6 @@ function addStepNumberText(ol, parentIndex) { let applicable = bullets[Math.min(index.length - 1, 5)]; let span = document.createElement('span'); span.textContent = (applicable[i] || '?') + '. '; - span.style.fontSize = '0'; span.setAttribute('aria-hidden', 'true'); child.prepend(span); let sublist = child.querySelector('ol'); From 6a5989b5fa741ad527bd944d91f1b68d0f908fee Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 10 Jan 2023 20:58:37 -0500 Subject: [PATCH 2/4] test: Update baselines for new JS digest --- .../generated-reference/multipage.html/multipage/index.html | 2 +- .../generated-reference/multipage.html/multipage/second.html | 2 +- .../generated-reference/multipage.html/multipage/third.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/baselines/generated-reference/multipage.html/multipage/index.html b/test/baselines/generated-reference/multipage.html/multipage/index.html index d0f880ff..18be6da9 100644 --- a/test/baselines/generated-reference/multipage.html/multipage/index.html +++ b/test/baselines/generated-reference/multipage.html/multipage/index.html @@ -1,7 +1,7 @@ - +