- From: James Scholes <james@pac.bz>
- Date: Thu, 10 Oct 2024 08:25:41 -0600
- To: Peterson Pereira Bozza <petersonbozza7@gmail.com>
- Cc: public-aria-practices@w3.org
- Message-Id: <14929482-ED61-46B6-9810-169CF0A22037@pac.bz>
Checkboxes are declarative form controls, designed to allow users to declare a value to be used later (e.g. during form submission). It is likely that people wouldn't expect checking a box to change their context by opening a modal, which is an action rather than a declaration. Separately, a checkbox has state, i.e. checked or unchecked. But if a modal was open, it would preclude access to the checkbox trigger, making the checked state irrelevant. In short, this is not a pattern I would ever recommend. > On 10 Oct 2024, at 06:11, Peterson Pereira Bozza <petersonbozza7@gmail.com> wrote: > > > Dear W3C Team, > > I hope this message finds you well... > > My name is Peterson, and I’m seeking clarification regarding accessibility best practices for implementing modals on the web. Specifically, I would like to know your stance on using input type="checkbox" to control the opening and closing of modals. > > While this method is technically feasible with CSS techniques like :checked, I have concerns about its accessibility implications, especially for users relying on assistive technologies. My primary concerns include: > > Managing focus correctly within the modal and returning it to the trigger element upon closing. > Ensuring that the modal content is fully accessible while making the background content inaccessible during modal interaction. > Whether this approach aligns with or conflicts with the established ARIA guidelines and best HTML practices for modals. > I would greatly appreciate any guidance or official recommendations the W3C may have on this topic, particularly regarding whether a more traditional button-triggered approach with ARIA roles would be preferred for better accessibility. > > Thank you in advance for your insights. > > Kind regards, > Peterson
Received on Thursday, 10 October 2024 14:25:57 UTC