Skip to content

アイコンサイズにxsを追加 #265

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

Merged
merged 1 commit into from
Mar 24, 2021
Merged

アイコンサイズにxsを追加 #265

merged 1 commit into from
Mar 24, 2021

Conversation

penicillin0
Copy link
Contributor

@penicillin0 penicillin0 commented Mar 24, 2021

なぜやったか

12pxよりも小さいアイコンが必要になったが、現状サイズが3種類しかない。

export const iconSize: { [key in IconSize]: number } = {
sm: 12,
md: 18,
lg: 24,
};

やったこと

自由にサイズをできてしまうと、デザインシステムのアーキテクチャ上問題があるという考えから、下限のサイズ (xs: 10px) を追加した。

確認方法

yarn install
yarn storybook

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@penicillin0 penicillin0 added the enhancement New feature or request label Mar 24, 2021
@penicillin0 penicillin0 requested review from noronaoki and a team March 24, 2021 08:07
@penicillin0 penicillin0 self-assigned this Mar 24, 2021
Copy link
Contributor

@noronaoki noronaoki left a comment

Choose a reason for hiding this comment

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

LGTM

@penicillin0 penicillin0 requested a review from maktak1995 March 24, 2021 08:11
@penicillin0 penicillin0 merged commit aeb9f9f into master Mar 24, 2021
@penicillin0 penicillin0 deleted the add-icon-size-xs branch March 24, 2021 08:31
@penicillin0 penicillin0 mentioned this pull request Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants