Skip to content

Commit

Permalink
Fixed #3277 - Improve Tag Implementation for Accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 17, 2022
1 parent 52d23c0 commit 1f02a59
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/views/tag/TagDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import Tag from 'primevue/tag';
<p>Content can easily be customized with the default slot instead of using the built-in display.</p>
<pre v-code><code>
&lt;Tag&gt;
Content
Content
&lt;/Tag&gt;

</code></pre>
Expand Down Expand Up @@ -118,6 +118,16 @@ import Tag from 'primevue/tag';
</table>
</div>

<h5>Accessibility</h5>
<h6>Screen Reader</h6>
<p>
Tag does not include any roles and attributes by default, any attribute is passed to the root element so aria roles and attributes can be added if required. If the tags are dynamic,
<i>aria-live</i> may be utilized as well. In case badges need to be tabbable, <i>tabindex</i> can be added to implement custom key handlers.
</p>

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

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

0 comments on commit 1f02a59

Please sign in to comment.