diff --git a/packages/playground/src/index.ts b/packages/playground/src/index.ts index 25e2a9f90cb9..f215698bc607 100644 --- a/packages/playground/src/index.ts +++ b/packages/playground/src/index.ts @@ -284,7 +284,10 @@ export const setupPlayground = ( // Set up the label for the dropdown const versionButton = document.querySelectorAll("#versions > a").item(0) - versionButton.innerHTML = "v" + sandbox.ts.version + " " + versionButton.textContent = "v" + sandbox.ts.version + " " + const caret = document.createElement("spam") + caret.classList.add("caret") + versionButton.appendChild(caret) versionButton.setAttribute("aria-label", `Select version of TypeScript, currently ${sandbox.ts.version}`) // Add the versions to the dropdown