Skip to content

Commit

Permalink
Add note on truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJDev committed Nov 5, 2024
1 parent 27c4065 commit 1f6b777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/components/tree-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Node labels should be a succinct title for whatever entity the node represents.

By default, labels are truncated to a single line. However, node labels may be wrapped to multiple lines in cases where the entire label must always be visible.

When a node's text is truncated, it should still be accessible to users via a browser-native tooltip.
When a node's text is truncated, it should still be accessible to users in some fashion. Truncation is only accessibly acceptable if there is some way for the user to see the non-truncated text.

<Box display="flex" flexDirection={['column', 'column', 'column', 'column', 'row']} sx={{gap: 3}}>
<Box as="figure" role="presentation" m={0}>
Expand Down

0 comments on commit 1f6b777

Please sign in to comment.