Skip to content

Commit

Permalink
Make docs example less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 1, 2023
1 parent 5098c4c commit 3cb8c0d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src-docs/src/views/combo_box/truncation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ const options: EuiComboBoxOptionOption[] = [
{
label:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, lorem ispum',
// Option `truncationProps` will override EuiComboBox `truncationProps`
truncationProps: {
truncation: 'start',
truncationOffset: 5,
},
},
{
label:
Expand All @@ -40,8 +35,12 @@ const options: EuiComboBoxOptionOption[] = [
label: 'Vestibulum lobortis ipsum sit amet tellus scelerisque vestibulum',
},
{
label:
'Sed commodo sapien ut purus mattis, at condimentum mauris porttitor',
label: 'This combobox option has an individual `truncationProps` override',
// Option `truncationProps` will override EuiComboBox `truncationProps`
truncationProps: {
truncation: 'start',
truncationOffset: 5,
},
},
];

Expand Down

0 comments on commit 3cb8c0d

Please sign in to comment.