The example for the disclosure pattern at https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-faq/ uses custom html, css, and js to build the view. HTML has the disclosure pattern built in using . The details element works with all browsers and provides the same functionality without needing extra javascript.
It would be better to display the native counter part on the example instead of using aria properties.
The example for the disclosure pattern at https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-faq/ uses custom html, css, and js to build the view. HTML has the disclosure pattern built in using . The details element works with all browsers and provides the same functionality without needing extra javascript.
It would be better to display the native counter part on the example instead of using aria properties.