Skip to content

Commit

Permalink
Remove Split button from OUI docs (opensearch-project#805) (opensearc…
Browse files Browse the repository at this point in the history
…h-project#812)

Signed-off-by: Sergey Myssak <[email protected]>
Co-authored-by: Andrey Myssak <[email protected]>
  • Loading branch information
2 people authored and AMoo-Miki committed Jul 2, 2023
1 parent b71d2d0 commit 496ef2d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 96 deletions.
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.

0 comments on commit 496ef2d

Please sign in to comment.