Skip to content

Commit ec82342

Browse files
authored
Merge pull request #169 from betocantu93/split-buttons
docs: split buttons docs
2 parents 9a27ccc + b890528 commit ec82342

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

packages/core/docs/navigation/button/demo/d08-split-buttons.md

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,19 @@ order: 8
44

55
# Split buttons
66

7+
<EuiText>
8+
<p>EUI split buttons specifically. Instead, we recommend using separate buttons for the main and overflow actions. You can achieve this by simply using the <EuiCode>display</EuiCode> and <EuiCode>size</EuiCode> args <strong>EuiButtonIcon</strong> to match that of the primary action button.</p>
9+
</EuiText>
710

811
```hbs template
9-
<TodoText/>
10-
<!-- <EuiFlexGroup @responsive={{false}} @gutterSize="xs" @alignItems="center">
12+
<EuiFlexGroup @responsive={{false}} @gutterSize='xs' @alignItems='center'>
1113
<EuiFlexItem @grow={{false}}>
12-
<EuiButton @size="s" @iconType="calendar">
14+
<EuiButton @size='s' @iconType='calendar'>
1315
Last 15 min
1416
</EuiButton>
1517
</EuiFlexItem>
1618
<EuiFlexItem @grow={{false}}>
17-
18-
<EuiPopover
19-
@ownFocus={{true}}
20-
@isOpen={{this.popover}}
21-
@anchorPosition='downCenter'
22-
@closePopover={{set this 'popover' false}}
23-
>
24-
<:button>
25-
<EuiButton
26-
@iconType='arrowDown'
27-
@iconSide='right'
28-
{{on 'click' (set this 'popover' true)}}
29-
>
30-
Show Popover
31-
</EuiButton>
32-
</:button>
33-
<:content>
34-
<EuiText @size="m" style="width: 300px;">
35-
<p>
36-
Popover content that’s wider than the default width
37-
</p>
38-
</EuiText>
39-
</:content>
40-
</EuiPopover>
19+
<EuiButtonIcon @iconType='boxesVertical' @display='base' @size='s' />
4120
</EuiFlexItem>
42-
</EuiFlexGroup> -->
43-
```
21+
</EuiFlexGroup>
22+
```

0 commit comments

Comments
 (0)