-
Notifications
You must be signed in to change notification settings - Fork 38
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/remove-charcoal-styled-from-button #406
Conversation
o.typography(14).bold.preserveHalfLeading, | ||
o.padding.horizontal(p.$size === 'M' ? 24 : 16), | ||
o.disabled, | ||
o.borderRadius('oval'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
border-radius: 999999px; |
theme((o) => [ | ||
o.font[variantToFont(p.$variant)].hover.press, | ||
o.bg[variantToBackground(p.$variant)].hover.press, | ||
o.typography(14).bold.preserveHalfLeading, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
charcoal/packages/react/src/components/Button/index.tsx
Lines 71 to 73 in 465aad3
font-size: 14px; | |
line-height: 22px; | |
font-weight: bold; |
o.font[variantToFont(p.$variant)].hover.press, | ||
o.bg[variantToBackground(p.$variant)].hover.press, | ||
o.typography(14).bold.preserveHalfLeading, | ||
o.padding.horizontal(p.$size === 'M' ? 24 : 16), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${(p) => (p.$size === 'M' ? horizontalPaddingMedium : horizontalPaddingSmall)} |
o.bg[variantToBackground(p.$variant)].hover.press, | ||
o.typography(14).bold.preserveHalfLeading, | ||
o.padding.horizontal(p.$size === 'M' ? 24 : 16), | ||
o.disabled, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
charcoal/packages/react/src/components/Button/index.tsx
Lines 100 to 103 in 465aad3
&:disabled, | |
&[aria-disabled]:not([aria-disabled='false']) { | |
opacity: 0.32; | |
} |
Visit the preview URL for this PR (updated for commit 84da99a): https://pixiv-charcoal-web--pr406-feat-remove-charcoal-edcexy1m.web.app (expires Tue, 07 Nov 2023 12:16:03 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 314b26d3adca98a761c7e4d9922ebb206ff024a0 |
Size Change: +1.87 kB (0%) Total Size: 587 kB
ℹ️ View Unchanged
|
$background={variantToBackground(variant)} | ||
$color={variantToFont(variant)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
css 側で毎回定義したくなかったので prop で渡す
やったこと
動作確認環境
チェックリスト
不要なチェック項目は消して構いません
備考