From 307d5b040b7e47000df243acfd6dfc72f0c55f68 Mon Sep 17 00:00:00 2001 From: Radek Podrazky <rpodrazky@securityscorecard.io> Date: Tue, 26 Nov 2024 12:30:40 +0100 Subject: [PATCH] fix(SegmentedToggle): fit root width to content size Closes UXD-1673 --- src/components/forms/SegmentedToggle/SegmentedToggle.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/forms/SegmentedToggle/SegmentedToggle.tsx b/src/components/forms/SegmentedToggle/SegmentedToggle.tsx index 7d4b6e682..4d3687fef 100644 --- a/src/components/forms/SegmentedToggle/SegmentedToggle.tsx +++ b/src/components/forms/SegmentedToggle/SegmentedToggle.tsx @@ -53,6 +53,7 @@ const { useContext, Provider } = createCtx<SegmentedToggleContext>( ); const SegmentedToggleRoot = styled(Padbox)` + width: fit-content; display: inline-block; background-color: var(--sscds-color-neutral-alpha-3); box-shadow: inset 0 0 0 1px var(--sscds-color-neutral-alpha-3);