Skip to content

Buttonの修正 - #121

Merged
touyou merged 6 commits into
mainfrom
fix/button
Aug 15, 2025
Merged

Buttonの修正#121
touyou merged 6 commits into
mainfrom
fix/button

Conversation

@touyou

@touyou touyou commented Jul 31, 2025

Copy link
Copy Markdown
Member

概要

変更内容

  • CSSの修正
  • antialiasの設定
  • Spinnerの色調整
  • wrapperの再現

動作確認

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

関連 Issue

touyou added 3 commits July 31, 2025 18:23
- 角丸変数に各値の説明コメントを追加
- シャドウ変数のフォーマットを統一
- ボタンコンポーネントの子要素を<span className="px-1">でラップ
- ボタンコンポーネントのスピナーにクラス名"text-current"を追加
- ボタンコンポーネントの子要素に"antialiased"クラスを追加
- アイコンコンポーネントのクラス名に"antialiased"を追加
@touyou touyou self-assigned this Jul 31, 2025
@vercel

vercel Bot commented Jul 31, 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 3:05am

- 角丸変数のコメントを追加
- シャドウ変数のフォーマットを改善
@touyou
touyou requested a review from ore0 August 1, 2025 01:12
@touyou
touyou marked this pull request as ready for review August 1, 2025 01:12
Copilot AI review requested due to automatic review settings August 1, 2025 01:12

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 implements button component improvements as outlined in the design specifications, focusing on visual refinements and consistency.

  • Updated border radius values in CSS variables to align with design system
  • Added antialiasing support for better text rendering on icons and button content
  • Enhanced spinner color inheritance for better visual consistency

Reviewed Changes

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

File Description
src/app/sparkle-design.css Updated radius CSS variables with precise pixel values and added clarifying comments
src/components/ui/icon/index.tsx Added antialiasing class for smoother icon rendering
src/components/ui/button/index.tsx Added wrapper span with antialiasing and improved spinner color inheritance

Comment thread src/components/ui/button/index.tsx Outdated
Comment thread src/app/sparkle-design.css
Comment thread src/components/ui/button/index.tsx Outdated
</>
) : (
children
<span className="px-1 antialiased">{children}</span>

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を使用する方針ってプロジェクト全体で決まってましたっけ。
全体にかけられるといいなと思いつつ、今のままだと適用する箇所としない箇所が発生しそう...?

@touyou touyou Aug 14, 2025

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.

→ mtgにて決定

全体にsubpixel-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 12:02
- ボタンコンポーネントのスタイルを改善
- アイコンコンポーネントのクラス名を整理
@touyou
touyou merged commit f74f5e5 into main Aug 15, 2025
3 checks passed
@touyou
touyou deleted the fix/button branch August 15, 2025 03:08
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