-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c19962a
commit 01e3ab5
Showing
2 changed files
with
200 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,82 @@ | ||
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> | ||
TabView container is defined with the <i>tablist</i> role, as any attribute is passed to the container element <i>aria-labelledby</i> can be optionally used to specify an element to describe the TabView. Each tab header has a{' '} | ||
<i>tab</i> role along with <i>aria-selected</i> state attribute and <i>aria-controls</i> to refer to the corresponding tab content element. The content element of each tab has <i>tabpanel</i> role, an id to match the | ||
<i>aria-controls</i> of the header and <i>aria-labelledby</i> reference to the header as the accessible name. | ||
</p> | ||
<DocSectionText id="accessibility" label="Accessibility"> | ||
<h3>Screen Reader</h3> | ||
<p> | ||
TabView container is defined with the <i>tablist</i> role, as any attribute is passed to the container element <i>aria-labelledby</i> can be optionally used to specify an element to describe the TabView. Each tab header has a{' '} | ||
<i>tab</i> role along with <i>aria-selected</i> state attribute and <i>aria-controls</i> to refer to the corresponding tab content element. The content element of each tab has <i>tabpanel</i> role, an id to match the | ||
<i>aria-controls</i> of the header and <i>aria-labelledby</i> reference to the header as the accessible name. | ||
</p> | ||
|
||
<h3>Tab Header Keyboard Support</h3> | ||
<div className="doc-tablewrapper"> | ||
<table className="doc-table"> | ||
<thead> | ||
<tr> | ||
<th>Key</th> | ||
<th>Function</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<i>tab</i> | ||
</td> | ||
<td>Moves focus through the header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>enter</i> | ||
</td> | ||
<td>Activates the focused tab header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>space</i> | ||
</td> | ||
<td>Activates the focused tab header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>right arrow</i> | ||
</td> | ||
<td>Moves focus to the next header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>left arrow</i> | ||
</td> | ||
<td>Moves focus to the previous header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>home</i> | ||
</td> | ||
<td>Moves focus to the last header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>end</i> | ||
</td> | ||
<td>Moves focus to the first header.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</DocSectionText> | ||
</DevelopmentSection> | ||
<h3>Tab Header Keyboard Support</h3> | ||
<div className="doc-tablewrapper"> | ||
<table className="doc-table"> | ||
<thead> | ||
<tr> | ||
<th>Key</th> | ||
<th>Function</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<i>tab</i> | ||
</td> | ||
<td>Moves focus through the header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>enter</i> | ||
</td> | ||
<td>Activates the focused tab header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>space</i> | ||
</td> | ||
<td>Activates the focused tab header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>right arrow</i> | ||
</td> | ||
<td>Moves focus to the next header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>left arrow</i> | ||
</td> | ||
<td>Moves focus to the previous header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>home</i> | ||
</td> | ||
<td>Moves focus to the last header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>end</i> | ||
</td> | ||
<td>Moves focus to the first header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>pageUp</i> | ||
</td> | ||
<td>Moves scroll position to first header.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>pageDown</i> | ||
</td> | ||
<td>Moves scroll position to last header.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</DocSectionText> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters