adaptlearning / adapt-contrib-core

Adapt Framework kernel. Responsible for boot loading, data loading and core APIs.
GNU General Public License v3.0
3 stars 17 forks source link

Fix: Use dangerouslySetInnerHTML to set attribution text in image.jsx (fixes #544) #545

Closed swashbuck closed 5 months ago

swashbuck commented 6 months ago

Fix #544

Fix

Testing

  1. In a Graphic component, set the _graphic.attribution value to:
{{a11y_alt_text '$5bn' 'five billion dollars'}}
  1. The attribution text should read $5bn with a hidden aria-label of five billion dollars
<span class="component__attribution graphic__attribution">
  <span class="component__attribution-inner graphic__attribution-inner">
    <span aria-hidden="true">$5bn</span>
    <span class="aria-label">five billion dollars</span>
  </span>
</span>
oliverfoster commented 5 months ago

:tada: This PR is included in version 6.46.11 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: