aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-22 14:25:13 +0100
committerChocobozzz <me@florianbigard.com>2021-11-22 14:25:26 +0100
commit4ef44b2b711210d2fedaffe4dd23c286df664f6b (patch)
tree7a2d6d8bed4c57b120a06eac7c1896fa75337107 /client/src/assets
parente7542293d6db519cce10f5d55c079a4f21482c2b (diff)
downloadPeerTube-4ef44b2b711210d2fedaffe4dd23c286df664f6b.tar.gz
PeerTube-4ef44b2b711210d2fedaffe4dd23c286df664f6b.tar.zst
PeerTube-4ef44b2b711210d2fedaffe4dd23c286df664f6b.zip
Add aria expanded to settings button
Diffstat (limited to 'client/src/assets')
-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()