From 2ea1142cc6541a113fb689a00a43f95b3e1b2446 Mon Sep 17 00:00:00 2001 From: Hideaki Takahashi Date: Wed, 13 Dec 2023 00:09:06 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20red?= =?UTF-8?q?=E3=81=AE=E5=80=A4=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/themes.css.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/themes.css.ts b/src/styles/themes.css.ts index 61cce0f8..c0b99710 100644 --- a/src/styles/themes.css.ts +++ b/src/styles/themes.css.ts @@ -10,7 +10,7 @@ export const colors = { lightBlue: '#0080FF', hoverBlue: 'rgba(30, 26, 222, 0.8)', purple: '#B01CF6', - red: '#E6002F', + red: '#FF4747', lightRed: '#FBD4D4', } as const; From e77fb3ca9b6612ab08431903ab697422eac702c4 Mon Sep 17 00:00:00 2001 From: Hideaki Takahashi Date: Wed, 13 Dec 2023 01:29:50 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Label=E3=82=B3?= =?UTF-8?q?=E3=83=B3=E3=83=9D=E3=83=BC=E3=83=8D=E3=83=B3=E3=83=88=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base/Label/index.tsx | 14 +++++++++++-- src/components/base/Label/styles.css.ts | 27 +++++++++---------------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/base/Label/index.tsx b/src/components/base/Label/index.tsx index 57a9980d..5ef2c3dc 100644 --- a/src/components/base/Label/index.tsx +++ b/src/components/base/Label/index.tsx @@ -5,6 +5,10 @@ import { styles } from './styles.css'; import type { ComponentPropsWithoutRef, FC } from 'react'; type BaseProps = { + /** + * ラベルのテキスト + */ + text?: string; /** * 必須かどうか */ @@ -13,9 +17,15 @@ type BaseProps = { type Props = BaseProps & Omit, keyof BaseProps>; -const Label: FC = ({ isRequired = true, htmlFor, children }) => { +const Label: FC = ({ text, isRequired = true, className, children, ...props }) => { return ( -