From 2e2dc14436a28232b298afca331499054f905dd2 Mon Sep 17 00:00:00 2001 From: Himanshu Garg Date: Tue, 24 Dec 2024 09:20:34 +0530 Subject: [PATCH] Replaces dynamic label by static as aria-expanded attribute sufficiently captures this --- .../accessibility/aria/attributes/aria-expanded/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md b/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md index acc73e3c176f5d0..92c071f4502a693 100644 --- a/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md +++ b/files/en-us/web/accessibility/aria/attributes/aria-expanded/index.md @@ -21,16 +21,16 @@ Use the `aria-owns` property on the elements that own expandable grouping contai ### Buttons -A button that opens a widget should have `aria-controls` set to the [`id`](/en-US/docs/Web/HTML/Global_attributes/id) of the expandable widget and `aria-expanded` set to the current state of the widget. +A button that toggles a widget should have `aria-controls` set to the [`id`](/en-US/docs/Web/HTML/Global_attributes/id) of the toggled widget and `aria-expanded` set to the current state of the widget. ```html - + ``` When the widget is visible, the controlling object relays that information via having `aria-expanded="true"` set on it. The accessible name of the controlling object should reflect this change. ```html - + ``` ### Menu