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

IconButtonとLikeButtonクラスの定義付け #54

Merged
merged 4 commits into from
Sep 14, 2021
Merged

Conversation

Hidetaro7
Copy link
Contributor

  • likeButtonクラス
  • labeledLikeButtonクラス

上記2つのクラスを分けて管理、共通クラスはiconButtonStyleで管理した。

@Hidetaro7 Hidetaro7 linked an issue Sep 13, 2021 that may be closed by this pull request
@knokmki612 knokmki612 self-requested a review September 13, 2021 07:39
@knokmki612
Copy link
Member

IconButtonへの変更を含んでいるので、プルリクエストの名前を変更しておきますね

@knokmki612 knokmki612 changed the title LikeButtonクラスの定義付け IconButtonとLikeButtonクラスの定義付け Sep 14, 2021
Copy link
Member

@knokmki612 knokmki612 left a comment

Choose a reason for hiding this comment

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

みました!コメントに残したもののほか、いいねが有効の際のみせかたは検討したほうがいいのか気になりました

packages/tailwindcss/stories/LikeButton.stories.js Outdated Show resolved Hide resolved
packages/tailwindcss/likeButton.js Outdated Show resolved Hide resolved
Comment on lines 20 to 22
heart: (fill, stroke) => {
return heart(fill, stroke);
},
Copy link
Member

Choose a reason for hiding this comment

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

特定のプロパティをfunctionにするという書き方はすっきりしていていいですね 👍

Co-authored-by: Kimiaki Kuno <knokmki612@gmail.com>
@Hidetaro7
Copy link
Contributor Author

36e22d6
こちらのコミットで修正

@knokmki612
Copy link
Member

いいねが有効の際のみせかたは検討したほうがいいのか気になりました

Likedというバリアントで表現されていたのですでに実装としては存在していますね
いいねがアクティブになっているように認識できていなかった、という話でしょうか(デザインにおける指摘)

Copy link
Member

@knokmki612 knokmki612 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Hidetaro7 Hidetaro7 merged commit bacde06 into develop Sep 14, 2021
@Hidetaro7 Hidetaro7 deleted the hideki-20210910 branch September 14, 2021 01:44
This was referenced Sep 14, 2021
This pull request was closed.
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.

IconButton (LikeButton): Elementsクラスの除去
2 participants