We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6eba40 commit 775d2abCopy full SHA for 775d2ab
packages/playground/src/index.ts
@@ -284,7 +284,10 @@ export const setupPlayground = (
284
285
// Set up the label for the dropdown
286
const versionButton = document.querySelectorAll("#versions > a").item(0)
287
- versionButton.innerHTML = "v" + sandbox.ts.version + " <span class='caret'/>"
+ versionButton.textContent = "v" + sandbox.ts.version + " "
288
+ const caret = document.createElement("spam")
289
+ caret.classList.add("caret")
290
+ versionButton.appendChild(caret)
291
versionButton.setAttribute("aria-label", `Select version of TypeScript, currently ${sandbox.ts.version}`)
292
293
// Add the versions to the dropdown
0 commit comments