Skip to content

Commit b91a1dc

Browse files
committed
fix broken segmetnedcontrol story
1 parent f9e5db5 commit b91a1dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/stories/components/SegmentedControl/SegmentedControlButton.stories.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ export const SegmentedControlButtonTemplate = ({selected, text, leadingVisual, i
3636
<li>
3737
<button className={clsx(
3838
'SegmentedControl-button',
39-
iconOnly && `SegmentedControl-button--iconOnly`,
40-
selected && `SegmentedControl-button--selected`,
39+
iconOnly && `SegmentedControl-button--iconOnly`
4140
)}
4241
aria-current={selected}
4342
aria-label={iconOnly && text}
@@ -47,6 +46,7 @@ export const SegmentedControlButtonTemplate = ({selected, text, leadingVisual, i
4746
<svg class="SegmentedControl-leadingVisual octicon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M1.679 7.932c.412-.621 1.242-1.75 2.366-2.717C5.175 4.242 6.527 3.5 8 3.5c1.473 0 2.824.742 3.955 1.715 1.124.967 1.954 2.096 2.366 2.717a.119.119 0 010 .136c-.412.621-1.242 1.75-2.366 2.717C10.825 11.758 9.473 12.5 8 12.5c-1.473 0-2.824-.742-3.955-1.715C2.92 9.818 2.09 8.69 1.679 8.068a.119.119 0 010-.136zM8 2c-1.981 0-3.67.992-4.933 2.078C1.797 5.169.88 6.423.43 7.1a1.619 1.619 0 000 1.798c.45.678 1.367 1.932 2.637 3.024C4.329 13.008 6.019 14 8 14c1.981 0 3.67-.992 4.933-2.078 1.27-1.091 2.187-2.345 2.637-3.023a1.619 1.619 0 000-1.798c-.45-.678-1.367-1.932-2.637-3.023C11.671 2.992 9.981 2 8 2zm0 8a2 2 0 100-4 2 2 0 000 4z"></path></svg>
4847
)}
4948

49+
{!iconOnly && (
5050
<span class="SegmentedControl-text" data-content={text}>{text}</span>
5151
)}
5252
</div>

0 commit comments

Comments
 (0)