Skip to content

Commit

Permalink
Badge accessibility doc update #5356
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Nov 23, 2023
1 parent f9b58e4 commit d39c7c3
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions components/doc/badge/accessibilitydoc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import { DevelopmentSection } from '@/components/doc/common/developmentsection';
import { DocSectionText } from '@/components/doc/common/docsectiontext';

export function AccessibilityDoc() {
return (
<DevelopmentSection>
<DocSectionText id="accessibility" label="Accessibility">
<h3>Screen Reader</h3>
<p>
Badge 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 badges 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>
<DocSectionText id="accessibility" label="Accessibility">
<h3>Screen Reader</h3>
<p>
Badge 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 badges 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>

<h4>Keyboard Support</h4>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
</DevelopmentSection>
<h4>Keyboard Support</h4>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
);
}

0 comments on commit d39c7c3

Please sign in to comment.