Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit d25bbca

Browse files
committed
improving documentation
1 parent 9ea3d70 commit d25bbca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/examples/components/Carousel/BestPractices/CarouselBestPractices.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react'
22
import { Text } from '@fluentui/react'
3+
import { Box } from '@fluentui/react'
34
import { link } from '../../../../utils/helpers'
45

56
import ComponentBestPractices from 'docs/src/components/ComponentBestPractices'
@@ -10,6 +11,15 @@ const doList = [
1011
{link('reported issue', 'https://bugs.chromium.org/p/chromium/issues/detail?id=1040924')} for
1112
details).
1213
</Text>,
14+
'Provide localized string of the "carousel" using `ariaRoleDescription` prop.',
15+
'Provide label to the carousel using `ariaLabel` prop.',
16+
<Box>
17+
If carousel contains `navigation`:
18+
<ul>
19+
<li> provide label to `navigation` and to navigation item using `aria-label` attribute</li>
20+
<li> add `aria-controls` attribute to navigation item referencing by `carouselItem` id </li>
21+
</ul>
22+
</Box>,
1323
]
1424

1525
const CarouselBestPractices: React.FunctionComponent<{}> = () => {

0 commit comments

Comments
 (0)