commIT-Group / card-details-form

https://commit-group.github.io/card-details-form/
3 stars 0 forks source link

Add to cards container aria-hidden attribute #16

Closed car2t closed 1 year ago

car2t commented 1 year ago

This is all the code I have added:

<section id="gradient-bg" aria-hidden="true">

The MDN short explanation about it:

Adding aria-hidden="true" to an element removes that element and all of its children from the accessibility tree. This can improve the experience for assistive technology users by hiding:

  • Purely decorative content, such as icons or images
  • Duplicated content, such as repeated text
  • Offscreen or collapsed content, such as menus