-
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
segmented control に token v2 の hover, active を追加 #656
base: revert-663-revert-604-naporitan/replace-token1
Are you sure you want to change the base?
segmented control に token v2 の hover, active を追加 #656
Conversation
Visit the preview URL for this PR (updated for commit 21296ca): https://pixiv-charcoal-web--pr656-chore-segmented-cont-fcbp6vdq.web.app (expires Wed, 01 Jan 2025 08:03:01 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 314b26d3adca98a761c7e4d9922ebb206ff024a0 |
Size Change: 0 B Total Size: 541 kB ℹ️ View Unchanged
|
.charcoal-segmented-control-radio__label:hover { | ||
background-color: var(--charcoal-color-container-hover-a); | ||
} | ||
.charcoal-segmented-control-radio__label:active { | ||
background-color: var(--charcoal-color-container-press-a); |
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.
aria-disabledなものに対してhover/activeないほうが自然な気がします
.charcoal-segmented-control-radio__label[data-checked='true']:hover { | ||
background-color: var(--charcoal-color-container-primary-hover); | ||
} | ||
.charcoal-segmented-control-radio__label[data-checked='true']:active { | ||
background-color: var(--charcoal-color-container-primary-press); | ||
} | ||
|
||
.charcoal-segmented-control-radio__label[aria-disabled]:not( | ||
[aria-disabled='false'] | ||
) { | ||
cursor: default; | ||
opacity: 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.
data-checked='true'なものに対してhover,activeなくてもいい気がするが確認が必要かもしれないです
やったこと
動作確認環境
チェックリスト
不要なチェック項目は消して構いません