Skip to content

Commit

Permalink
chore(react): add hover and active style
Browse files Browse the repository at this point in the history
  • Loading branch information
naporin0624 committed Dec 24, 2024
1 parent 4ad18ea commit 6e08538
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions packages/react/src/components/SegmentedControl/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,36 @@
line-height: 22px;
}

.charcoal-segmented-control-radio__label[aria-disabled]:not(
[aria-disabled='false']
) {
cursor: default;
opacity: 0.32;
.charcoal-segmented-control-radio__label:not([aria-disabled='true']):hover {
background-color: var(--charcoal-surface3-hover);
}
.charcoal-segmented-control-radio__label:not([aria-disabled='true']):active {
background-color: var(--charcoal-surface3-press);
}

.charcoal-segmented-control-radio__label[data-checked='true'] {
background-color: var(--charcoal-brand);
color: var(--charcoal-text5);
}

.charcoal-segmented-control-radio__label:not(
[aria-disabled='true']
)[data-checked='true']:hover {
background-color: var(--charcoal-brand-hover);
}
.charcoal-segmented-control-radio__label:not(
[aria-disabled='true']
)[data-checked='true']:active {
background-color: var(--charcoal-brand-press);
}

.charcoal-segmented-control-radio__label[aria-disabled]:not(
[aria-disabled='false']
) {
cursor: default;
opacity: 0.32;
}

.charcoal-segmented-control-radio__input {
position: absolute;

Expand Down

0 comments on commit 6e08538

Please sign in to comment.