Skip to content

Commit 075cc28

Browse files
committed
REVERT ME: testing examples
1 parent a619942 commit 075cc28

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

packages/eui/src/components/button/button.stories.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {
1616

1717
import { EuiButtonEmpty } from './button_empty';
1818
import { EuiButton, Props as EuiButtonProps } from './button';
19+
import { EuiThemeProvider } from '../../services';
20+
import { EuiFlexGroup } from '../flex';
1921

2022
const meta: Meta<EuiButtonProps> = {
2123
title: 'Navigation/EuiButton',
@@ -52,6 +54,26 @@ export const Playground: Story = {
5254
};
5355
disableStorybookControls(Playground, ['buttonRef']);
5456

57+
// TODO: REVERT ME
58+
export const Testing: Story = {
59+
parameters: {
60+
loki: {
61+
skip: true,
62+
},
63+
},
64+
args: {
65+
children: 'Button',
66+
},
67+
render: (args: EuiButtonProps) => (
68+
<EuiFlexGroup>
69+
<EuiButton {...args} />
70+
<EuiThemeProvider modify={{ flags: { buttonVariant: 'classic' } }}>
71+
<EuiButton {...args} />
72+
</EuiThemeProvider>
73+
</EuiFlexGroup>
74+
),
75+
};
76+
5577
export const HighContrast: Story = {
5678
tags: ['vrt-only'],
5779
globals: { highContrastMode: true },

packages/eui/src/components/button/button_empty/button_empty.stories.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
* Side Public License, v 1.
77
*/
88

9+
import React from 'react';
910
import type { Meta, StoryObj } from '@storybook/react';
1011
import { disableStorybookControls } from '../../../../.storybook/utils';
1112

1213
import { EuiButtonEmpty, EuiButtonEmptyProps } from './button_empty';
14+
import { EuiFlexGroup } from '../../flex';
15+
import { EuiThemeProvider } from '../../../services';
1316

1417
const meta: Meta<EuiButtonEmptyProps> = {
1518
title: 'Navigation/EuiButtonEmpty',
@@ -43,3 +46,23 @@ export const Playground: Story = {
4346
},
4447
};
4548
disableStorybookControls(Playground, ['buttonRef']);
49+
50+
// TODO: REVERT ME
51+
export const Testing: Story = {
52+
parameters: {
53+
loki: {
54+
skip: true,
55+
},
56+
},
57+
args: {
58+
children: 'Button',
59+
},
60+
render: (args: EuiButtonEmptyProps) => (
61+
<EuiFlexGroup>
62+
<EuiButtonEmpty {...args} />
63+
<EuiThemeProvider modify={{ flags: { buttonVariant: 'classic' } }}>
64+
<EuiButtonEmpty {...args} />
65+
</EuiThemeProvider>
66+
</EuiFlexGroup>
67+
),
68+
};

packages/eui/src/components/button/button_icon/button_icon.stories.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
* Side Public License, v 1.
77
*/
88

9+
import React from 'react';
910
import type { Meta, StoryObj } from '@storybook/react';
1011

1112
import { EuiButtonIcon, EuiButtonIconProps } from './button_icon';
13+
import { EuiThemeProvider } from '../../../services';
14+
import { EuiFlexGroup } from '../../flex';
1215

1316
const meta: Meta<EuiButtonIconProps> = {
1417
title: 'Navigation/EuiButtonIcon',
@@ -33,3 +36,23 @@ export const Playground: Story = {
3336
iconType: 'faceHappy',
3437
},
3538
};
39+
40+
// TODO: REVERT ME
41+
export const Testing: Story = {
42+
parameters: {
43+
loki: {
44+
skip: true,
45+
},
46+
},
47+
args: {
48+
iconType: 'faceHappy',
49+
},
50+
render: (args: EuiButtonIconProps) => (
51+
<EuiFlexGroup>
52+
<EuiButtonIcon {...args} />
53+
<EuiThemeProvider modify={{ flags: { buttonVariant: 'classic' } }}>
54+
<EuiButtonIcon {...args} />
55+
</EuiThemeProvider>
56+
</EuiFlexGroup>
57+
),
58+
};

0 commit comments

Comments
 (0)