Skip to content

Commit

Permalink
chore: add var with token
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadtaimoor-deriv committed Oct 31, 2024
1 parent c005b7b commit 3cdf567
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/components/SegmentedControl/segmented-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
background: var(
--component-segmentedControl-bg-single-item-selected
);
color:(--component-segmentedControl-label-single-color-selected);
color: var(
--component-segmentedControl-label-single-color-selected
);
}
&.animated::before {
content: "";
Expand All @@ -79,16 +81,18 @@
justify-content: center;

svg {
fill: var(--component-segmentedControl-icon-single-default);
fill: var(--component-segmentedControl-icon-single-default);
}
}
&.selected:not(:disabled),
&.animated {
* {
color: var(--component-segmentedControl-label-single-color-selected);
color: var(
--component-segmentedControl-label-single-color-selected
);
}
svg {
fill: var(--component-segmentedControl-icon-single-default);
fill: var(--component-segmentedControl-icon-single-default);
}
}
}
Expand Down

0 comments on commit 3cdf567

Please sign in to comment.