From 3a3346c95a587f232bc311d0cd58a52559b8b35d Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 9 Aug 2023 11:51:28 +0200 Subject: [PATCH] FIX: correctly applies aria-expanded/aria-controls (#23029) --- .../discourse/components/chat-composer-dropdown.hbs | 4 +++- .../discourse/components/chat-composer-dropdown.js | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.hbs index 9a9aabd7c71..8f4a16cf64b 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer-dropdown.hbs @@ -9,11 +9,13 @@ "chat-composer-dropdown__trigger-btn" (if @hasActivePanel "has-active-panel") }} + aria-expanded={{if this.isExpanded "true" "false"}} + aria-controls={{this.ariaControls}} ...attributes /> - {{#if this.isExpanded}}