Skip to content

Commit d21b315

Browse files
navya9singhCopilot
andauthored
Accessibility bug fix 2737338 (#3529)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 32433bc commit d21b315

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/playground/src/createConfigDropdown.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ export const createConfigDropdown = (sandbox: Sandbox, monaco: Monaco) => {
106106
.forEach(categoryID => {
107107
const categoryDiv = document.createElement("div")
108108
const header = document.createElement("h4")
109+
const headerId = "category-header-" + categoryID
110+
header.id = headerId
109111
const ol = document.createElement("ol")
112+
ol.setAttribute("role", "group")
113+
ol.setAttribute("aria-labelledby", headerId)
110114

111115
Object.keys(categoryMap[categoryID]).forEach(optID => {
112116
const optSummary = categoryMap[categoryID][optID]

0 commit comments

Comments
 (0)