From 3e43380863bd4bc164dad522d50592335027e724 Mon Sep 17 00:00:00 2001 From: Alan Ktquez Date: Thu, 25 Jun 2020 07:04:55 -0300 Subject: [PATCH] fix: Make aria-expanded dynamic --- src/SocialChat.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SocialChat.vue b/src/SocialChat.vue index 187bc0b..9ba46b6 100644 --- a/src/SocialChat.vue +++ b/src/SocialChat.vue @@ -39,7 +39,7 @@ :class="{ 'vsc-popup-button--no-icon': !icon }" aria-haspopup="true" aria-controls="vsc-popup-box" - aria-expanded="false" + :aria-expanded="show" :aria-label="ariaLabelButton" :title="ariaLabelButton" @click="togglePopup" @@ -104,7 +104,7 @@ export default { computed: { ariaLabelButton () { - return `${this.show ? 'Close' : 'Open'} social support widget` + return `${this.show ? 'Close' : 'Open'} social chat popup` }, getAttendants () {