title: How to implement ARIA tags for Shiny applications to meet WCAG requiremnets?
body: <p>I am writing an application in Shiny that aims to meet WCAG-2.0+ (Web Content Accessibility Guidelines) standards by using ARIA tags (Accessible Rich Internet Applications). Doing so, I tried using html tags embedded within the built in shiny widgets / functions, but with very little success. It seems like Shiny was unable to identify the ARIA tags and there's no way to change it by changing the attributes.</p>
  <p>For example, how do I attach an aria tag to the following?</p>
  <pre><code>a( href = &quot;http://www.thislogo.com&quot;)
      img(src = &quot;logo.png&quot;,
      title = &quot;The logo&quot;,
      height = &quot;60px&quot;,
      alt = &quot;This is a picture of the logo, clicking on it links to thislogo.com&quot;,
      HTML(&quot;aria-label = &quot;logo&quot;)
  )
  </code></pre>
  <p>A second example I tried:</p>
  <pre><code>a(href = &quot;http://www.thislogo.com&quot;,
              img(src = &quot;logo.png&quot;,
              title = &quot;The logo&quot;,
              height = &quot;60px&quot;,
              alt = &quot;This is a picture of the logo, clicking on it links to thislogo.com&quot;,
              aria-label = &quot;logo&quot;
          )
      )
  </code></pre>
  <p>A third example that didn't work for me:</p>
  <pre><code>    a(href = &quot;http://www.thislogo.com&quot;,
          img(src = &quot;logo.png&quot;,
          title = &quot;The logo&quot;,
          height = &quot;60px&quot;,
          alt = &quot;This is a picture of the logo, clicking on it links to thislogo.com&quot;,
          tags$html(aria-label = &quot;logo&quot;)
      )
  )
  </code></pre>
  <p>I was wondering if there's a proper way to implement this and is it even supported for Shiny at the moment? I tried searching everywhere, but this topic seems to be rarely discussed or still in development.</p>
  <p>The closest example I found was a discussion on checking for checking accessibility (<a href="https://community.rstudio.com/t/making-shiny-apps-accessible-for-all-humans/8458" rel="nofollow noreferrer">link</a>), or changing the language attribute (<a href="https://github.com/rstudio/shiny/issues/2844" rel="nofollow noreferrer">link</a>), but not a lot of discussion on actually implementing ARIA tags.</p>
  <p>Thanks for your insights.</p>