Skip to content

Inputの修正 - #124

Merged
touyou merged 9 commits into
mainfrom
fix/input
Aug 26, 2025
Merged

Inputの修正#124
touyou merged 9 commits into
mainfrom
fix/input

Conversation

@touyou

@touyou touyou commented Aug 13, 2025

Copy link
Copy Markdown
Member

概要

こちらの修正および微調整

https://www.notion.so/goodpatch-design-div/Input-364c3d9b627848568b49d9671cad03fa?source=copy_link

変更内容

  • カラーの調整(不透明度は変更されていないはず?)
  • テストの調整
  • Storybookの調整
  • Figma Connect
  • registryの文言調整

動作確認

  • pnpm lint を実行
  • pnpm build を実行してプロジェクトが正常にビルドされることを確認
  • pnpm test を実行してテストがすべて成功することを確認

関連 Issue

touyou added 6 commits August 13, 2025 15:04
- 入力フィールドのスタイルにパディングを追加
- サイズに応じたクラス名を更新
- エラーハンドリングのスタイルを改善
- 無効状態のスタイルを更新
- Inputコンポーネントの説明文を削除
- スタイル定義の修正
- プロパティの型定義を更新
- Figmaとの接続を設定
- InputコンポーネントのプロパティをFigmaにマッピング
- 自動生成されたコードの追加
- InputコンポーネントのSizeストーリーにargsを適用
- InvalidおよびDisabledストーリーにargsを適用
- Inputコンポーネントの説明文を「インプットはテキストフィールドの形式でユーザーからの入力を取得するために使用するコンポーネントです。」に変更
@touyou
touyou requested a review from ore0 August 13, 2025 06:54
@touyou touyou self-assigned this Aug 13, 2025
Copilot AI review requested due to automatic review settings August 13, 2025 06:54
@vercel

vercel Bot commented Aug 13, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sparkle-design Ready Preview Comment Aug 15, 2025 6:38am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR focuses on refining the Input component's visual design and functionality. The changes align with design specifications from a Notion document, updating colors, typography, spacing, and improving component documentation.

  • Updated color scheme from base/primary colors to neutral/text semantic tokens
  • Refined styling with new typography classes and improved spacing
  • Enhanced component documentation and testing approach

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/components/ui/input/item.json Updated component description for better clarity
src/components/ui/input/index.tsx Major styling updates including colors, typography, spacing, and prop documentation
src/components/ui/input/index.test.tsx Improved test assertions to check specific CSS classes rather than size strings
src/components/ui/input/index.stories.tsx Cleaned up Storybook configuration and improved story structure
src/components/ui/input/index.figma.tsx Added new Figma Connect integration file
src/components/ui/input-password/index.test.tsx Applied same test improvements as the main Input component

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/components/ui/input/index.tsx
Comment thread src/components/ui/input/index.tsx
Comment thread src/components/ui/input/index.figma.tsx Outdated
isDisabled: figma.enum("state", {
disabled: true,
}),
isFocused: figma.boolean("isFocused"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

システムが制御するから不要...?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isFocusedはどうしようかなというところでした。なくていいはずなんですがなかなかに複雑なことをしているなという印象があり...特に当初の意図とかなければ無くす形で実装できないか再度見てみます

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コンポーネントには必要だと思うんですけど、Code Connectでは不要という意味でした!🙆‍♂️

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triggerの制御がCode Connectには含まれていない点が気になりました!

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isIconButtonEnableはFigmaだとisTriggerになるので、その点の同期が取れていなくても問題ないかについて議論をできていると良さそうです!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あ、ここはその変更の対応関係が理解できていなかったです🙏
であればisIconButtonEnableをFigmaに合わせるが対応になるかと思います

touyou added 2 commits August 15, 2025 15:33
- isIconButtonEnableをisTriggerに変更
- iconButtonIconをtriggerIconに変更
- iconButtonAriaLabelをtriggerAriaLabelに変更
- コンポーネントのテストを新しいプロパティに合わせて更新
@touyou

touyou commented Aug 15, 2025

Copy link
Copy Markdown
Member Author

@ore0 全般的にiconButtonではなくtriggerという形にして命名を変更しました🙆‍♂️

@ore0 ore0 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@touyou
touyou merged commit 90028c4 into main Aug 26, 2025
3 checks passed
@touyou
touyou deleted the fix/input branch August 26, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants