Skip to content

Commit 3cb8c0d

Browse files
committed
Make docs example less confusing
1 parent 5098c4c commit 3cb8c0d

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src-docs/src/views/combo_box/truncation.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ const options: EuiComboBoxOptionOption[] = [
1717
{
1818
label:
1919
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, lorem ispum',
20-
// Option `truncationProps` will override EuiComboBox `truncationProps`
21-
truncationProps: {
22-
truncation: 'start',
23-
truncationOffset: 5,
24-
},
2520
},
2621
{
2722
label:
@@ -40,8 +35,12 @@ const options: EuiComboBoxOptionOption[] = [
4035
label: 'Vestibulum lobortis ipsum sit amet tellus scelerisque vestibulum',
4136
},
4237
{
43-
label:
44-
'Sed commodo sapien ut purus mattis, at condimentum mauris porttitor',
38+
label: 'This combobox option has an individual `truncationProps` override',
39+
// Option `truncationProps` will override EuiComboBox `truncationProps`
40+
truncationProps: {
41+
truncation: 'start',
42+
truncationOffset: 5,
43+
},
4544
},
4645
];
4746

0 commit comments

Comments
 (0)