Skip to content

Commit

Permalink
Fixed #3276 - Improve Ripple Implementation for Accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 17, 2022
1 parent fc4c695 commit 52d23c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ripple/Ripple.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function create(el) {

ink.className = 'p-ink';
ink.setAttribute('role', 'presentation');
ink.setAttribute('aria-hidden', 'true');
el.appendChild(ink);

ink.addEventListener('animationend', onAnimationEnd);
Expand Down
7 changes: 7 additions & 0 deletions src/views/ripple/RippleDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ directives: {
</table>
</div>

<h5>Accessibility</h5>
<h6>Screen Reader</h6>
<p>Ripple element has the <i>aria-hidden</i> attribute as true so that it gets ignored by the screen readers.</p>

<h6>Keyboard Support</h6>
<p>Component does not include any interactive elements.</p>

<h5>Dependencies</h5>
<p>None.</p>
</AppDoc>
Expand Down

0 comments on commit 52d23c0

Please sign in to comment.