Skip to content

Commit

Permalink
improve progressBar implementation for accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bahadirsofuoglu committed Nov 17, 2022
1 parent a0e1f71 commit 4e9e378
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions src/views/progressbar/ProgressBarDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,28 @@ data() {
</table>
</div>

<h5>Accessibility</h5>
<h6>Screen Reader</h6>
<p>
ProgressBar components uses <i>progressbar</i> role along with <i>aria-valuemin</i>, <i>aria-valuemax</i> and <i>aria-valuenow</i> attributes. Value to describe the component can be defined using <i>aria-labelledby</i> and
<i>aria-label</i> props.
</p>

<pre v-code><code><template v-pre>
&lt;span aria-labelledby="label_status"&gt;
&lt;/span&gt;

&lt;ProgressBar aria-labelledby="label_status"&gt;
&lt;/ProgressBar&gt;

&lt;ProgressBar aria-label="Status"&gt;
&lt;/ProgressBar&gt;
</template>
</code></pre>

<h6>Keyboard Support</h6>
<p>Not applicable.</p>

<h5>Dependencies</h5>
<p>None.</p>
</AppDoc>
Expand Down Expand Up @@ -200,7 +222,7 @@ export default {
onBeforeUnmount(() => {
endProgress();
})
const value1 = ref(0);
const value2 = ref(50);
const interval = ref(null);
Expand Down Expand Up @@ -248,7 +270,7 @@ export default {
onBeforeUnmount(() => {
endProgress();
})
const value1 = ref(0);
const value2 = ref(50);
const interval = ref(null);
Expand Down

0 comments on commit 4e9e378

Please sign in to comment.