Text Truncation
The text truncation rule checks whether visible text content remains fully readable when users increase the font size. Truncated text can hide critical information, especially for users with low vision or those who rely on larger text for comfortable reading. Visible and resizable text improves accessibility and provides a consistent experience for all users.
- Rule Category :
Readable Text and Layout - WCAG 2.1 & 2.2 SC :
1.4.4 (AA) - RAAM 1.1 :
8.2 - Rule Severity :
Critical - Supported Platforms :
Android, iOS
Success criteria
The specific criteria for success are:
- Scalable fonts: Text must use relative units to allow dynamic resizing.
- Flexible layouts: Text containers must use dynamic sizing.
- No fixed sizes: Avoid fixed height or width values that prevent text containers from resizing to fit larger text.
-
Scrollable containers (if needed): If the layout cannot expand, use a scrollable container (
ScrollViewon Android,UIScrollViewon iOS) so users can access all text content.
How to fix
To prevent text truncation:
-
Use scalable text: Use
spfor text so it scales when users increase font size (up to 200% as applicable in this rule). -
Use flexible layout: Ensure the text container (e.g., a
TextViewon Android) and its parent views do not have fixed sizes, such asdpwidths or heights. -
Use relative layout dimensions: Replace fixed sizes with
wrap_content,match_parent, or0dpwith weight. -
Allow vertical expansion: Set
layout_heighttowrap_contentso the container size increases along with the text size. -
Provide scrolling if needed: If the text is expected to be long, place the
TextViewinside aScrollViewso all content remains accessible.
Example
The following screenshot highlights a text truncation violation in an Android app:

Errors
- The
TextViewuses the correct font unit (sp) for scalable text, but its parent view has a fixed height of273dp. - The fixed height restricts the
TextViewfrom expanding as text size increases, causing truncation.
Fix
To fix this violation:
- Change the parent view’s height from
273dptowrap_contentto allow it to expand with the text. - Set the
TextViewlayout_heighttowrap_content. - If the text is long, place the
TextViewinside aScrollViewso users can access the entire content.
References
WCAG
RAAM 1.1
- 8.2: RAAM 1.1
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!