aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/assets/player/videojs-components/settings-menu-button.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-button.ts b/client/src/assets/player/videojs-components/settings-menu-button.ts
index c9990af1c..75a5c6904 100644
--- a/client/src/assets/player/videojs-components/settings-menu-button.ts
+++ b/client/src/assets/player/videojs-components/settings-menu-button.ts
@@ -147,7 +147,9 @@ class SettingsButton extends Button {
147 this.player().peertube().onMenuOpen(); 147 this.player().peertube().onMenuOpen();
148 148
149 (this.menu.el() as HTMLElement).style.opacity = '1' 149 (this.menu.el() as HTMLElement).style.opacity = '1'
150
150 this.dialog.show() 151 this.dialog.show()
152 this.el().setAttribute('aria-expanded', 'true')
151 153
152 this.setDialogSize(this.getComponentSize(this.menu)) 154 this.setDialogSize(this.getComponentSize(this.menu))
153 155
@@ -159,6 +161,8 @@ class SettingsButton extends Button {
159 this.player_.peertube().onMenuClosed() 161 this.player_.peertube().onMenuClosed()
160 162
161 this.dialog.hide() 163 this.dialog.hide()
164 this.el().setAttribute('aria-expanded', 'false')
165
162 this.setDialogSize(this.getComponentSize(this.menu)); 166 this.setDialogSize(this.getComponentSize(this.menu));
163 (this.menu.el() as HTMLElement).style.opacity = '1' 167 (this.menu.el() as HTMLElement).style.opacity = '1'
164 this.resetChildren() 168 this.resetChildren()