From 07e5f260ad4c88879f27c3fc8742155f872e8994 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Thu, 22 May 2025 00:21:35 -0400 Subject: Use browser-native methods to hide elements, not CSS alone. The hidden `textarea` used to attach the form value to the DOM was being included in the ARIA accessibility tree, at least in testing (I didn't check in a browser). While we could suppress this iwth `aria-role="hidden"`, the WHATWG recommendation is to Not Do That, and to find another way to hide the element, instead. Marking the element as hidden accomplishes that goal, _and_ gets rid of a style rule. --- ui/styles/forms.css | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ui/styles') diff --git a/ui/styles/forms.css b/ui/styles/forms.css index 98fd43e..f4d218f 100644 --- a/ui/styles/forms.css +++ b/ui/styles/forms.css @@ -26,7 +26,3 @@ form.form > button { .disabled { color: var(--light-text); } - -.hidden { - display: none; -} -- cgit v1.2.3