Skip to content

IconButtonの修正 - #123

Merged
touyou merged 8 commits into
mainfrom
fix/iconbutton
Aug 15, 2025
Merged

IconButtonの修正#123
touyou merged 8 commits into
mainfrom
fix/iconbutton

Conversation

@touyou

@touyou touyou commented Aug 7, 2025

Copy link
Copy Markdown
Member

概要

以下指摘事項含めて再確認
https://www.notion.so/goodpatch-design-div/Icon-Button-454a13d0d11046f8b517c04ccd59cde4?source=copy_link

変更内容

  • CVAの整理
  • 色の調整
  • Propsの調整
  • Storybook修正
  • antialiasedを追加
  • テストの追加

動作確認

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

関連 Issue

touyou added 5 commits August 7, 2025 16:57
- IconButtonのストーリーでargsを使用してプロパティを適用
- アイコンボタンの説明を更新
- スタイルの改善により、カーソルをポインタに設定
…、関連するスタイルを更新

- IconButtonのテーマオプションを「neutral」に変更
- スタイルのクラス名を「neutral」に合わせて更新
- ストーリー内のテーマに関するテストを修正
- IconButtonコンポーネントのvariantオプションから「outline-solid」を削除し、「outline」を追加
- IconButtonコンポーネントにneutralテーマを追加
- isDisabledプロパティの処理を改善
- IconButtonのテストケースを新規作成
- IconButtonコンポーネントの基本レンダリングテストを追加
- バリアントスタイリングのテストを追加
- サイズバリアントのテストを追加
- ローディング状態のテストを追加
- 無効状態のテストを追加
- ユーザーインタラクションのテストを追加
- アクセシビリティのテストを追加
- エッジケースのテストを追加
- Refフォワーディングのテストを追加
@touyou
touyou requested a review from ore0 August 7, 2025 09:02
@touyou touyou self-assigned this Aug 7, 2025
Copilot AI review requested due to automatic review settings August 7, 2025 09:02
@vercel

vercel Bot commented Aug 7, 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:33am

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

Refactors the IconButton component to improve styling consistency and API design. The changes align with design system guidelines and improve code maintainability through CVA reorganization.

  • Replaced "secondary" theme with "neutral" theme across all variants
  • Updated color schemes and removed shadow-sm from various states
  • Added comprehensive test coverage and improved Storybook documentation

Reviewed Changes

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

Show a summary per file
File Description
src/components/ui/icon-button/item.json Updated component description to better describe usage
src/components/ui/icon-button/index.tsx Major refactor of CVA styles, theme changes, and prop improvements
src/components/ui/icon-button/index.test.tsx Added comprehensive test suite covering all variants and edge cases
src/components/ui/icon-button/index.stories.tsx Updated Storybook stories to reflect theme changes and improved structure
src/components/ui/icon-button/index.figma.tsx Added neutral theme mapping for Figma integration

Comment thread src/components/ui/icon-button/index.tsx
Comment thread src/components/ui/icon-button/index.tsx
…ral」に変更

- IconButtonコンポーネントのテーマを「neutral」に変更
- Modalコンポーネントのテーマを「neutral」に変更

@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.

antialiasedの件以外は問題なしでした!

Comment thread src/components/ui/icon-button/index.tsx Outdated
[
"inline-flex items-center justify-center whitespace-nowrap rounded-action",
"ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-[var(--color-ring-normal)] focus-visible:ring-offset-2",
"relative cursor-pointer antialiased",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

antialiasedの方針が決まってるといいなと思いました!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

antialiasedの定義をここでカットすればこのPRはマージしても問題なしです!

touyou added 2 commits August 15, 2025 15:31
- "antialiased"クラスを削除し、スタイルを簡素化
@touyou
touyou merged commit e762080 into main Aug 15, 2025
2 of 3 checks passed
@touyou
touyou deleted the fix/iconbutton branch August 15, 2025 06:31
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