From 9a9f88bbd88a64e3f2bdc8d0dffd375a6da4aea2 Mon Sep 17 00:00:00 2001
From: areumH <94692566+areumH@users.noreply.github.com>
Date: Sun, 16 Feb 2025 21:51:17 +0900
Subject: [PATCH 01/20] =?UTF-8?q?design:=20Button=20=EC=BB=B4=ED=8F=AC?=
=?UTF-8?q?=EB=84=8C=ED=8A=B8=EC=97=90=20outlineHighLight=20=EC=8A=A4?=
=?UTF-8?q?=ED=83=80=EC=9D=BC=20=EA=B0=92=20=EC=B6=94=EA=B0=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mobile/atoms/Button/Button.style.ts | 30 ++++++++++++++++++-
src/components/mobile/atoms/Button/Button.tsx | 7 ++++-
src/stories/mobile/atoms/Button.stories.tsx | 16 +++++++++-
3 files changed, 50 insertions(+), 3 deletions(-)
diff --git a/src/components/mobile/atoms/Button/Button.style.ts b/src/components/mobile/atoms/Button/Button.style.ts
index 64841939..6569a846 100644
--- a/src/components/mobile/atoms/Button/Button.style.ts
+++ b/src/components/mobile/atoms/Button/Button.style.ts
@@ -24,6 +24,18 @@ export const getVariantStyling = (
backgroundColor: color.GY[5],
color: color.GY[1],
}),
+ outlineHighlightR: css({
+ border: `2px solid ${color.PINK}`,
+ borderRadius: '10px',
+ backgroundColor: 'transparent',
+ color: color.RED,
+ }),
+ outlineHighlightB: css({
+ border: `2px solid ${color.SKYBLUE}`,
+ borderRadius: '10px',
+ backgroundColor: 'transparent',
+ color: color.BLUE,
+ }),
};
return style[variant];
@@ -58,6 +70,22 @@ export const getSizeByVariantStyling = (
height: '34px',
}),
},
+ outlineHighlightR: {
+ large: css({}),
+ medium: css(typo.Comment.SemiBold, {
+ width: '134px',
+ height: '72px',
+ padding: '0 21px',
+ }),
+ },
+ outlineHighlightB: {
+ large: css({}),
+ medium: css(typo.Comment.SemiBold, {
+ width: '134px',
+ height: '72px',
+ padding: '0 21px',
+ }),
+ },
};
return style[variant][size];
@@ -68,6 +96,6 @@ export const buttonStyling = css({
justifyContent: 'center',
alignItems: 'center',
border: 'none',
- whiteSpace: 'nowrap',
+ whiteSpace: 'normal',
cursor: 'pointer',
});
diff --git a/src/components/mobile/atoms/Button/Button.tsx b/src/components/mobile/atoms/Button/Button.tsx
index fe2b09a2..44804307 100644
--- a/src/components/mobile/atoms/Button/Button.tsx
+++ b/src/components/mobile/atoms/Button/Button.tsx
@@ -4,7 +4,12 @@ import * as S from './Button.style';
export interface ButtonProps extends ComponentPropsWithRef<'button'> {
size?: 'large' | 'medium';
- variant?: 'primary' | 'roundPrimary' | 'outlineShadow';
+ variant?:
+ | 'primary'
+ | 'roundPrimary'
+ | 'outlineShadow'
+ | 'outlineHighlightR'
+ | 'outlineHighlightB';
active?: boolean;
}
diff --git a/src/stories/mobile/atoms/Button.stories.tsx b/src/stories/mobile/atoms/Button.stories.tsx
index a8d5fd30..4e18c5cf 100644
--- a/src/stories/mobile/atoms/Button.stories.tsx
+++ b/src/stories/mobile/atoms/Button.stories.tsx
@@ -15,7 +15,13 @@ const meta = {
control: { type: 'radio' },
},
variant: {
- options: ['primary', 'roundPrimary', 'outlineShadow'],
+ options: [
+ 'primary',
+ 'roundPrimary',
+ 'outlineShadow',
+ 'outlineHighlightR',
+ 'outlineHighlightB',
+ ],
control: { type: 'radio' },
},
active: { control: 'boolean' },
@@ -57,6 +63,14 @@ export const All: Story = {
+
outlineHighlightR
+
+ outlineHighlightB
+
disabled
From f13b0f21b549b41c21a6c4d160c323c6b44bd422 Mon Sep 17 00:00:00 2001
From: areumH <94692566+areumH@users.noreply.github.com>
Date: Sun, 16 Feb 2025 21:52:07 +0900
Subject: [PATCH 02/20] =?UTF-8?q?feat:=20Button=20=EC=BB=B4=ED=8F=AC?=
=?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=8A=A4=ED=86=A0=EB=A6=AC=EB=B6=81=20?=
=?UTF-8?q?=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/stories/mobile/atoms/Button.stories.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/stories/mobile/atoms/Button.stories.tsx b/src/stories/mobile/atoms/Button.stories.tsx
index 4e18c5cf..32dd97d1 100644
--- a/src/stories/mobile/atoms/Button.stories.tsx
+++ b/src/stories/mobile/atoms/Button.stories.tsx
@@ -65,7 +65,7 @@ export const All: Story = {
outlineHighlightR
outlineHighlightB