jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
6.82k stars 2.47k forks source link

feat: Mark the external link icon as aria-hidden #1346

Closed ndrooo closed 1 month ago

ndrooo commented 1 month ago

Unmarked icons/images can cause confusion for screenreader users, and this icon is purely decorative. This CSS-Tricks example is pretty close. This W3C example is also similar but concerns elements (s have no alt attribute). Also compare to Wikipedia implementation, which is done in CSS but yields the same result, namely that the icon is completely hidden from assistive technology.