Skip to content

Commit

Permalink
docs(Icon): fix ariaHidden example (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
CollierCZ committed Jun 16, 2020
1 parent a3b3519 commit 4276d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Icon/ACCESSIBILITY.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": "import Stack from \"@kiwicom/orbit-components/lib/Stack\";\nimport Text from \"@kiwicom/orbit-components/lib/Text\";",
"example": "() => (\n <Stack>\n <Text>\n <Icons.Passengers ariaLabel=\"Passengers\" /> 4\n </Text>\n <Text>\n <Icons.Airplane reverseOnRtl ariaLabel=\"Airplane\" /> Flights\n </Text>\n </Stack>\n)\n",
"example": "() => (\n <Stack>\n <Text>\n <Icons.Passengers ariaLabel=\"Passengers\" /> 4\n </Text>\n <Text>\n <Icons.Airplane ariaHidden /> Flights\n </Text>\n </Stack>\n)\n",
"info": {
"title": "Icon accessibility",
"description": "When the icon is displaying information not stated in any other way, use ariaLabel to make the same information available to screenreaders. When the icon is just decorative and repeats other information, use ariaHidden to hide it from screenreaders."
Expand Down
2 changes: 1 addition & 1 deletion src/Icon/__examples__/ACCESSIBILITY.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
<Icons.Passengers ariaLabel="Passengers" /> 4
</Text>
<Text>
<Icons.Airplane reverseOnRtl ariaLabel="Airplane" /> Flights
<Icons.Airplane ariaHidden /> Flights
</Text>
</Stack>
),
Expand Down

0 comments on commit 4276d90

Please sign in to comment.