Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Tran authored and Andrew Tran committed Sep 14, 2023
1 parent fead8e1 commit 83d510a
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ import ItemDisplay from 'terra-clinical-item-display';
#### Accessibility Guidance: Truncated Text

Truncation of text can pose an accessibility concern if no method of disclosing the full text is available
to the user. When using `isTruncated`, consumers are responsible for providing a progressive disclosure pattern
to disclose the full Item Display text in order to ensure that it is accessible for keyboard navigation users.
to the user.

When using `isTruncated`, consumers are responsible for providing a progressive disclosure pattern
to disclose the full Item Display text in order to ensure that it is accessible for keyboard navigation users.

**There should always be a method of accessing the truncated information. If there is no way to progressively
disclose the full content of the truncated information, then truncation should not be used.**
Expand All @@ -64,8 +66,11 @@ Some examples of progressive disclosure patterns that may be used to disclose tr

The method of disclosure **must** be accessible via keyboard interactions.

Truncation should be avoided where it is not necessary. Certain content should **never** be truncated (i.e.
Truncation should be avoided where it is not necessary.

Certain content should **never** be truncated (i.e.
medication names and dosages in menus where the user is selecting from a list of choices).

Providing a shorter preview text with a method to disclose the full text provides a more equitable
experience for all users.

Expand Down

0 comments on commit 83d510a

Please sign in to comment.