-
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(react): remove @charcoal/styled from checkbox #377
Conversation
Size Change: +1.08 kB (0%) Total Size: 589 kB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 0036b15): https://pixiv-charcoal-web--pr377-feat-remove-charcoal-mquzct3q.web.app (expires Wed, 06 Dec 2023 07:02:32 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 314b26d3adca98a761c7e4d9922ebb206ff024a0 |
a1d83c5
to
0412113
Compare
@@ -263,8 +261,6 @@ exports[`using dark theme storiesOf(index.story.tsx).add(Unlabelled) snapshot 1` | |||
width: 20px; | |||
height: 20px; | |||
border-radius: 4px; | |||
-webkit-transition: 0.2s box-shadow; | |||
transition: 0.2s box-shadow; | |||
-webkit-transition: all 0.2s !important; | |||
transition: all 0.2s !important; |
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.
重複してるので消した
.c2[type='checkbox']:not(:checked) { | ||
border-width: 2px; | ||
border-style: solid; | ||
border-color: #5c5c5c; |
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.
ここが直接 hex color で出ていた
&:not(:checked) { | ||
border-width: 2px; | ||
border-style: solid; | ||
border-color: ${({ theme }) => theme.color.text4}; |
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.
theme.color.text4
が使われているとき hex color で出力されたので css variables に書き直してる
"@react-aria/dialog": "^3.5.0", | ||
"@react-aria/focus": "^3.11.0", | ||
"@react-aria/listbox": "^3.8.0", | ||
"@react-aria/overlays": "^3.13.0", | ||
"@react-aria/radio": "^3.5.0", | ||
"@react-aria/radio": "^3.8.0", |
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.
react-stately
を上げたことで型の整合が取れなくなったので version up した
invalid: { | ||
description: '入力の不正化', | ||
default: 'false', | ||
type: 'boolean', | ||
}, |
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.
ci の build が落ちるかつ docs に足りてなかったので記述を追加
@@ -60,6 +60,30 @@ Labelled.args = { | |||
invalid: false, | |||
} | |||
|
|||
export const Invalid: Story<Omit<Props, 'invalid'>> = (props) => { |
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.
snapshot を生成するために Invalid の story を追加
@@ -41,6 +41,7 @@ | |||
"@charcoal-ui/tailwind-config": "../packages/tailwind-config", | |||
"@charcoal-ui/tailwind-diff": "../packages/tailwind-diff", | |||
"@charcoal-ui/theme": "../packages/theme", | |||
"@charcoal-ui/utils": "../packages/utils" | |||
"@charcoal-ui/utils": "../packages/utils", | |||
"next/@swc/helpers": "0.4.36" |
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.
react-aria の version up をしたところ docs の next build
が通らなくなったので issue の内容で修正
vercel/next.js#48593 (comment)
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 を使用している next.js のプロダクトすべてに影響を及ぼす気がするんですが、react-aria の version up は避けたほうがいいですかね......
&[aria-invalid='true'] { | ||
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32); |
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.
approve あと追加分
react-aria から checkbox に aria-invalid
が張られるようになったので動的に切り替える方法から selector に統一
…ve-charcoal-style-from-checkbox
やったこと
動作確認環境
チェックリスト
不要なチェック項目は消して構いません