w3c / aria-practices

WAI-ARIA Authoring Practices Guide (APG)
https://www.w3.org/wai/aria/apg/
Other
1.21k stars 346 forks source link

Disclosure (Show/Hide) Pattern - Feedback from APG list #3145

Open a11ydoer opened 1 month ago

a11ydoer commented 1 month ago

"I've created a form that expands when content is entered into the first and only visible field initially. What pattern should I be following? See attached screenshots. Note: pressing enter will validate the form (without expanding it). Please advise, thank you!

Best,

Michaux Kelley

hide_signup_form show_signup_form
a11ydoer commented 1 month ago

Hi Michaux,

I understand you're asking which pattern you should use for the sign-in or sign-up form. The choice ultimately depends on the user interaction you want to implement as the developer with accessibility in mind.

Additionally, the ARIA Practices Group (APG) provides an Accordion example, which you may want to explore with disclosure(show and hide) patterns.