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

themeで定義しているline-heightの値を修正と、それに伴う修正 #334

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

takashi0602
Copy link
Member

@takashi0602 takashi0602 commented Dec 6, 2023

close #311

概要

line-heightの値に1を追加し(ボタン等で使用する)、またkeyは数値に変更し扱いやすいようにしました。
上記に伴い、各コンポーネントで使用していたline-heightも修正しました。

@takashi0602 takashi0602 self-assigned this Dec 6, 2023
@uyupunpopunpo
Copy link
Contributor

@tyokinuhata
Copy link
Member

なんとなく感じたのは、文字列よりも数値のほうが認知負荷は上がるような気はしていて、ただ、line-heightをtext/headingみたいな分け方をすることに意味がないという感じならOKなのかなーと思いました

@takashi0602
Copy link
Member Author

line-height: 1が曲者で、ボタン・バッジ・ルビなどに使ってて適切な言葉浮かばなかったんよな💦
(一応1をtextにして、1.3をparagraphにするかも迷った)
個人的にはFigma見ながら実装するんで、text/headingはあまり重視してないかなという感じかな〜
よさげな命名あれば教えてほしいっす🙏🙏

@tyokinuhata
Copy link
Member

なるほどなー、役割が複数あるなら数値でも良さそうっすね

Copy link
Member

@tyokinuhata tyokinuhata left a comment

Choose a reason for hiding this comment

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

🔢 LGTM

@takashi0602 takashi0602 merged commit 23001fb into main Dec 7, 2023
4 checks passed
@takashi0602 takashi0602 deleted the fix/311_line-height branch December 7, 2023 01:53
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.

line-heightの追加・修正
3 participants