From c8b452afa8f100df491ae2f88c9cee88595651e8 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Fri, 26 Jan 2024 06:48:26 -0500 Subject: [PATCH] fix(Button): adjust button icon in small, medium size (#15585) --- .../src/components/Button/Button.stories.js | 20 ++++++- .../src/components/Button/button-story.scss | 56 +++++++++++++++++++ .../scss/components/button/_button.scss | 6 ++ 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 packages/react/src/components/Button/button-story.scss diff --git a/packages/react/src/components/Button/Button.stories.js b/packages/react/src/components/Button/Button.stories.js index 5c4d2702d529..b8aac1a0b105 100644 --- a/packages/react/src/components/Button/Button.stories.js +++ b/packages/react/src/components/Button/Button.stories.js @@ -7,10 +7,11 @@ import React from 'react'; import { action } from '@storybook/addon-actions'; -import { Add } from '@carbon/icons-react'; +import { Add, FitToScreen } from '@carbon/icons-react'; import { default as Button, ButtonSkeleton } from '../Button'; import ButtonSet from '../ButtonSet'; import mdx from './Button.mdx'; +import './button-story.scss'; export default { title: 'Components/Button', @@ -62,6 +63,23 @@ export const Default = (args) => { return ; }; +export const ButtonTest = () => { + const sizes = ['sm', 'md', 'lg', 'xl']; + return ( +
+ {sizes.map((size) => ( +
+ +
+
+
+ ))} +
+ ); +}; + export const Secondary = (args) => { return (