Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CCI] Remove Split buttons from OUI docs #812

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions src-docs/src/views/button/button_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,6 @@ const buttonIconSnippet = [
/>`,
];

import SplitButton from './split_button';
const splitButtonSource = require('!!raw-loader!./split_button');
const splitButtonHtml = renderToHtml(SplitButton);
const splitButtonSnippet = [
`<OuiFlexGroup responsive={false} gutterSize="s" alignItems="center">
<OuiFlexItem grow={false}>
<OuiButton size="s">
Primary action
</OuiButton>
</OuiFlexItem>
<OuiFlexItem grow={false}>
<OuiButtonIcon
display="base"
size="s"
iconType="boxesVertical"
aria-label="More"
/>
</OuiFlexItem>
</OuiFlexGroup>`,
];

import ButtonGhost from './button_ghost';
const buttonGhostSource = require('!!raw-loader!./button_ghost');
const buttonGhostHtml = renderToHtml(ButtonGhost);
Expand Down Expand Up @@ -379,33 +358,6 @@ export const ButtonExample = {
snippet: buttonIconSnippet,
demo: <ButtonIcon />,
},
{
title: 'Split buttons',
source: [
{
type: GuideSectionTypes.JS,
code: splitButtonSource,
},
{
type: GuideSectionTypes.HTML,
code: splitButtonHtml,
},
],
text: (
<>
<p>
OUI does not support split buttons specifically. Instead, we
recommend using separate buttons for the main and overflow actions.
You can achieve this by simply using the <OuiCode>display</OuiCode>{' '}
and <OuiCode>size</OuiCode> props <strong>OuiButtonIcon</strong> to
match that of the primary action button.
</p>
</>
),
props: { OuiButton, OuiButtonIcon },
snippet: splitButtonSnippet,
demo: <SplitButton />,
},
{
title: 'Toggle buttons',
source: [
Expand Down
48 changes: 0 additions & 48 deletions src-docs/src/views/button/split_button.js

This file was deleted.

Loading