File tree Expand file tree Collapse file tree 3 files changed +68
-0
lines changed
packages/eui/src/components/button Expand file tree Collapse file tree 3 files changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import {
1616
1717import { EuiButtonEmpty } from './button_empty' ;
1818import { EuiButton , Props as EuiButtonProps } from './button' ;
19+ import { EuiThemeProvider } from '../../services' ;
20+ import { EuiFlexGroup } from '../flex' ;
1921
2022const meta : Meta < EuiButtonProps > = {
2123 title : 'Navigation/EuiButton' ,
@@ -52,6 +54,26 @@ export const Playground: Story = {
5254} ;
5355disableStorybookControls ( 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+
5577export const HighContrast : Story = {
5678 tags : [ 'vrt-only' ] ,
5779 globals : { highContrastMode : true } ,
Original file line number Diff line number Diff line change 66 * Side Public License, v 1.
77 */
88
9+ import React from 'react' ;
910import type { Meta , StoryObj } from '@storybook/react' ;
1011import { disableStorybookControls } from '../../../../.storybook/utils' ;
1112
1213import { EuiButtonEmpty , EuiButtonEmptyProps } from './button_empty' ;
14+ import { EuiFlexGroup } from '../../flex' ;
15+ import { EuiThemeProvider } from '../../../services' ;
1316
1417const meta : Meta < EuiButtonEmptyProps > = {
1518 title : 'Navigation/EuiButtonEmpty' ,
@@ -43,3 +46,23 @@ export const Playground: Story = {
4346 } ,
4447} ;
4548disableStorybookControls ( 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+ } ;
Original file line number Diff line number Diff line change 66 * Side Public License, v 1.
77 */
88
9+ import React from 'react' ;
910import type { Meta , StoryObj } from '@storybook/react' ;
1011
1112import { EuiButtonIcon , EuiButtonIconProps } from './button_icon' ;
13+ import { EuiThemeProvider } from '../../../services' ;
14+ import { EuiFlexGroup } from '../../flex' ;
1215
1316const 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+ } ;
You can’t perform that action at this time.
0 commit comments