--- url: "https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/" titulek: "Disclosure (Show/Hide) Pattern | APG | WAI | W3C" h1: "Disclosure (Show/Hide) Pattern" popis: "Accessibility resources free online from the international standards organization: W3C Web Accessibility Initiative (WAI)." jazyk: "en" kanonicka: "https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:24:27" znaku: 1774 slov: 238 kodovani: "utf-8" sha256: "8faff663d168a5cb10a951484364e5f6a025e778b3386bddc9f594fd728206b5" --- Disclosure (Show/Hide) Pattern ## About This Pattern A disclosure is a widget that enables content to be either collapsed (hidden) or expanded (visible). It has two elements: a disclosure [button](../button/) and a section of content whose visibility is controlled by the button. When the controlled content is hidden, the button is often styled as a typical push button with a right-pointing arrow or triangle to hint that activating the button will display additional content. When the content is visible, the arrow or triangle typically points down. ## Examples - [Disclosure (Show/Hide) of Image Description](examples/disclosure-image-description/) - [Disclosure (Show/Hide) of Answers to Frequently Asked Questions](examples/disclosure-faq/) - [Disclosure (Show/Hide) Navigation Menu](examples/disclosure-navigation/) - [Disclosure (Show/Hide) Navigation Menu with Top-Level Links](examples/disclosure-navigation-hybrid/) - [Disclosure (Show/Hide) Card](examples/disclosure-card/) ## Keyboard Interaction When the disclosure control has focus: - Enter : activates the disclosure control and toggles the visibility of the disclosure content. - Space : activates the disclosure control and toggles the visibility of the disclosure content. ## WAI-ARIA Roles, States, and Properties - The element that shows and hides the content has role [button](https://w3c.github.io/aria/#button) . - When the content is visible, the element with role `button` has [aria-expanded](https://w3c.github.io/aria/#aria-expanded) set to `true` . When the content area is hidden, it is set to `false` . - Optionally, the element with role `button` has a value specified for [aria-controls](https://w3c.github.io/aria/#aria-controls) that refers to the element that contains all the content that is shown or hidden.