Fix notebook toolbar screen reader reading order (#12252)

* add presentation role to selectContainer

* make nb toolbar dropdown arrow unfocusable

* remove empty string content change
This commit is contained in:
Lucy Zhang
2020-09-25 12:49:42 -07:00
committed by GitHub
parent 7e74465fb1
commit 56c989ac7b

View File

@@ -336,6 +336,7 @@ export class SelectBox extends vsSelectBox {
if (selectOptions && selectOptions.labelText && selectOptions.labelText !== undefined) {
let outerContainer = document.createElement('div');
let selectContainer = document.createElement('div');
selectContainer.setAttribute('role', 'presentation');
outerContainer.className = selectOptions.labelOnTop ? 'labelOnTopContainer' : 'labelOnLeftContainer';