Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(spindle-tokens): fix x icon color #102

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Conversation

tatz012
Copy link
Contributor

@tatz012 tatz012 commented Jun 14, 2024

概要

Xアイコンの色指定が間違っていたため--color-third-party-x-blueを指定しても色が適用されない状態になっていました。
正しい変数を追加しつつ、コメントでdeprecatedを記載しました。

追加した変数名は openameba/spindle#965 のdesign tokenに合わせて修正しています。

@tatz012 tatz012 requested review from sasaplus1, herablog, itsminadesu and a team June 14, 2024 05:30
@tatz012 tatz012 self-assigned this Jun 14, 2024
@tatz012 tatz012 requested review from tokimari and removed request for a team June 14, 2024 05:30
@tatz012 tatz012 changed the title Feat/change x icon color feat(spindle-tokens): fix x icon color Jun 14, 2024
@tatz012 tatz012 removed the request for review from tokimari June 14, 2024 05:31
Copy link
Member

@sasaplus1 sasaplus1 left a comment

Choose a reason for hiding this comment

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

多分いいと思うんですがどうですか @itsminadesu

@@ -194,7 +194,8 @@
--color-third-party-facebook-white: var(--facebook-white);
--color-third-party-twitter-blue: var(--twitter-blue);
--color-third-party-twitter-white: var(--twitter-white);
--color-third-party-x-blue: var(--x-blue);
--color-third-party-x-blue: var(--x-blue); /* deprecated. --x-blue- is undefined. specifying it won't change the color. */
Copy link
Member

Choose a reason for hiding this comment

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

/** @deprecated */ をつけたらIntelliJやVSCodeがインポート先のCSSでこの変数を使った時に非推奨だよ〜的な表示をしてくれるのでは、的なことを @tatz-ibz と話したんですが特にそういうことにはならないそうです。

Copy link
Contributor

@itsminadesu itsminadesu Jun 18, 2024

Choose a reason for hiding this comment

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

@herablog @tokimari @yasuda-shin
過去にdeprecatedパターンに遭遇したことがないのですが、上記のような実装(コメント)で問題ないですよね...?(一応確認させていただきたいです 🙏🏻 )

Copy link
Member

@herablog herablog Jun 18, 2024

Choose a reason for hiding this comment

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

何かしらインポート先で示唆できるとベストではありますが、今回の対応ではこれで全然大丈夫です!(色も当たらないですし)

Copy link
Contributor

@tokimari tokimari Jun 18, 2024

Choose a reason for hiding this comment

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

過去にdeprecatedにした色はありましたが、その時は特にコメントは残さずRelease Noteに記載していましたね。
https://github.com/openameba/ameba-color-palette.css/releases/tag/v2.0.0

リリースノート見に行くより定義見る方が楽なので、コメントにある分には(動作に支障がなければ)良いのではないでしょうか 👀

Copy link
Member

@herablog herablog left a comment

Choose a reason for hiding this comment

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

エンジニアを褒めるネコ:了解です

@tatz012 tatz012 merged commit 0eb300a into main Jun 18, 2024
4 checks passed
@tatz012 tatz012 deleted the feat/change-x-icon-color branch June 18, 2024 07:46
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.

5 participants