From c03114699810df56ece63f9d59af185c8601a104 Mon Sep 17 00:00:00 2001 From: KHMakoto Date: Mon, 12 Sep 2022 15:04:17 -0700 Subject: [PATCH] Adding proper icon to Button vr stories. --- .../src/stories/Button.stories.tsx | 86 +++++++++++-------- 1 file changed, 49 insertions(+), 37 deletions(-) diff --git a/apps/vr-tests-react-components/src/stories/Button.stories.tsx b/apps/vr-tests-react-components/src/stories/Button.stories.tsx index cbba4b0fd12c9..23c3f2e7077f1 100644 --- a/apps/vr-tests-react-components/src/stories/Button.stories.tsx +++ b/apps/vr-tests-react-components/src/stories/Button.stories.tsx @@ -2,8 +2,11 @@ import { storiesOf } from '@storybook/react'; import * as React from 'react'; import Screener from 'screener-storybook/src/screener'; import { Button, CompoundButton, ToggleButton, MenuButton } from '@fluentui/react-button'; +import { bundleIcon, CalendarMonthFilled, CalendarMonthRegular } from '@fluentui/react-icons'; import { makeStyles } from '@griffel/react'; +const CalendarMonth = bundleIcon(CalendarMonthFilled, CalendarMonthRegular); + const steps = new Screener.Steps() .snapshot('default', { cropTo: '.testWrapper' }) .hover('#button-id') @@ -125,19 +128,19 @@ storiesOf('Button Converged', module) { includeHighContrast: true, includeDarkMode: true }, ) .addStory('Size small', () => ( - )) .addStory('Size large', () => ( - )) .addStory('Size small - with long text wrapping', () => { const styles = useStyles(); return ( - ); @@ -145,7 +148,7 @@ storiesOf('Button Converged', module) .addStory('Size medium - with long text wrapping', () => { const styles = useStyles(); return ( - ); @@ -153,7 +156,7 @@ storiesOf('Button Converged', module) .addStory('Size large - with long text wrapping', () => { const styles = useStyles(); return ( - ); @@ -161,7 +164,7 @@ storiesOf('Button Converged', module) .addStory( 'With icon before content', () => ( - ), @@ -172,14 +175,14 @@ storiesOf('Button Converged', module) .addStory( 'With icon after content', () => ( - ), { includeRtl: true }, ) - .addStory('Icon only', () =>