Skip to content

Commit 546fc28

Browse files
committed
docs(ActionList): add details on truncate react implementation
1 parent fdffaf7 commit 546fc28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/components/action-list.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ The tooltip and optional dialog should be triggered by a button element that wra
341341

342342
All `ActionList.Description` are rendered inline (next to the label) by default. For the cases where the description is too long to fit within one line, the content will wrap to a new line. In some cases, it may be desired to have the description be truncated with an ellipsis. This can be achieved by setting the `truncate` prop on the `ActionList.Description` component. Please note that truncating an inline description is only acceptable if the full, non-truncated text can be seen in a subsequent page or screen. It is at the consumer's discretion to use this feature accessibily.
343343

344+
Please note the `truncate` option is currently implemented in Primer React only, and is not available in Primer View Components, where the `InlineDescription` will wrap by default.
344345

345346
### Known accessibility issues (GitHub staff only)
346347

0 commit comments

Comments
 (0)