Add aria-hidden to content warning accordion emoji

This commit is contained in:
Helen Chong 2024-07-13 20:58:05 +08:00
parent aa9fb5093b
commit 44ac16800b
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ module.exports = function (eleventyConfig) {
const warningMarkup = markdownLibrary.renderInline(warning);
const contentMarkup = markdownLibrary.render(content);
return `<details class="contnet-warning">
<summary class="contnet-warning__warning"><strong> Content Warning:</strong> ${warningMarkup}</summary>
<summary class="contnet-warning__warning"><strong><span aria-hidden="true"></span> Content Warning:</strong> ${warningMarkup}</summary>
<div class="contnet-warning__content">${contentMarkup}</div>
</details>`;
});