From 5455ff7d9cf2f204bb20444319a25a5518a8bb87 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 24 Jun 2023 15:34:35 -0700 Subject: [PATCH] Fix segmented controls --- components/common/Segment/index.module.scss | 6 +++++- components/common/Segment/index.tsx | 2 +- components/common/SegmentedControl/index.module.scss | 4 ---- components/common/SegmentedControl/index.tsx | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/common/Segment/index.module.scss b/components/common/Segment/index.module.scss index cb0aa7e8..fd87b69d 100644 --- a/components/common/Segment/index.module.scss +++ b/components/common/Segment/index.module.scss @@ -1,4 +1,4 @@ -.Segment { +.segment { color: $grey-55; cursor: pointer; flex-grow: 1; @@ -40,3 +40,7 @@ width: 100%; } } + +:global(.blended) .segment input:checked + label { + background: var(--card-bg); +} diff --git a/components/common/Segment/index.tsx b/components/common/Segment/index.tsx index f975c3dd..69d3facc 100644 --- a/components/common/Segment/index.tsx +++ b/components/common/Segment/index.tsx @@ -21,7 +21,7 @@ const Segment: React.FC = (props: Props) => { } return ( -
+
= ({ [styles.blended]: blended, [styles.grow]: grow, [styles.gap]: gap, + blended: blended, }, className, elementClass