-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update src/content/design-system/foundation/pictogram
- Loading branch information
1 parent
baeea8c
commit bb6205d
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...tent/design-system/foundation/pictogram/accessibility/accessibility-features/content.mdoc
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,8 +1,8 @@ | ||
- A `<span>` element labeled with a description identifies the Pictogram | ||
- A `<svg>` element labeled with a description identifies the Pictogram | ||
- The Pictogram shape is visible in Windows High Contrast Mode | ||
- When using alongside descriptive visual text ensure `aria-hidden="true"` is used to hide the Pictogram from assistive technologies, otherwise users will receive duplicate descriptions | ||
|
||
### Accessibility in the HTML | ||
|
||
- `<span aria-label="{DESCRIPTION}">`: Provides a label that describes the Pictogram | ||
- `<svg aria-label="{DESCRIPTION}">`: Provides a label that describes the Pictogram | ||
- `<svg role="img" focusable="false">`: Prevents the Pictogram SVG element from being traversed by browsers that map the SVG to the ‘group’ role and from unnecessarily receiving focus in Internet Explorer (IE) |
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