unit007
KPCKevin Powell - Community
•Created by unit007 on 2/26/2024 in #front-end
Design for A11y, hide accordion section with css or javascript ?
This is for an application that requres log in.
I wonder if what I see visually on the page should be same as what does exist in the DOM?
Is it ok to hide some sections with css? They will be visible to screen readers if they exist in the DOM.
This is about components like accordions or similar where you see more content after clicking a button.
So what is best/recommended practice.
Any opinions?
21 replies