提交 8f120f6f 编写于 作者: R Rob Lourens

Fix #51495 - add aria-expanded to search query details button, for screenreader

上级 729cf967
......@@ -969,6 +969,7 @@ export class SearchView extends Viewlet implements IViewlet, IPanel {
skipLayout = Boolean(skipLayout);
if (show) {
this.toggleQueryDetailsButton.setAttribute('aria-expanded', 'true');
dom.addClass(this.queryDetails, cls);
if (moveFocus) {
if (reverse) {
......@@ -980,6 +981,7 @@ export class SearchView extends Viewlet implements IViewlet, IPanel {
}
}
} else {
this.toggleQueryDetailsButton.setAttribute('aria-expanded', 'false');
dom.removeClass(this.queryDetails, cls);
if (moveFocus) {
this.searchWidget.focus();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册