Skip to content

Commit

Permalink
Fixed #3275 - Improve Skeleton Implementation for Accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 17, 2022
1 parent 20a055e commit fc4c695
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/skeleton/Skeleton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :style="containerStyle" :class="containerClass"></div>
<div :style="containerStyle" :class="containerClass" aria-hidden="true"></div>
</template>

<script>
Expand Down
10 changes: 10 additions & 0 deletions src/views/skeleton/SkeletonDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ import Skeleton from 'primevue/skeleton';
</table>
</div>

<h5>Accessibility</h5>
<h6>Screen Reader</h6>
<p>
Skeleton uses <i>aria-hidden</i> as "true" so that it gets ignored by screen readers, any valid attribute is passed to the root element so you may customize it further if required. If multiple skeletons are grouped inside a container, you
may use <i>aria-busy</i> on the container element as well to indicate the loading process.
</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 fc4c695

Please sign in to comment.