1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-11-03 02:13:16 +03:00

Improved accessibility for many editor page components

Related to #1320
This commit is contained in:
Dan Brown
2019-08-26 12:47:04 +01:00
parent 7cc17934a8
commit 64abe10dc4
8 changed files with 38 additions and 24 deletions

View File

@@ -23,6 +23,8 @@ class EditorToolbox {
toggle() {
this.elem.classList.toggle('open');
const expanded = this.elem.classList.contains('open') ? 'true' : 'false';
this.toggleButton.setAttribute('aria-expanded', expanded);
}
setActiveTab(tabName, openToolbox = false) {