In @punchh/react-native-punchh-components, SegmentedControl default variant changed from default (legacy) → designSystem (Figma Q2-26 track + inset pill).
Commit: 5828d7c5f — variant: SEGMENTED_CONTROL_VARIANT.DESIGN_SYSTEM
Yes — 2 call sites in @punchh/react-native-punchh-olo:
| File | Usage |
|---|---|
src/UI/RecentOrder/RecentOrderScene.js |
Fav / Recent Orders header toggle |
src/UI/Menu/LocationBar.js |
Hours of Operation type segments |
TipView.js uses ButtonGroup with segmentControlStyleProps — not SegmentedControl. No change needed there.
Menu framework: no SegmentedControl usage.
- LocationBar styles assume legacy connected tabs (
SEGMENT_CONTROL_*borders, capitalized xSmall text). DS variant ignoresComponentStyles.SegmentedControltheme overrides and applies track/pill chrome (SEGMENT_CONTROL_DS_*), so HOO segments look wrong / double-styled. - RecentOrderScene only sets
width: 240and relied on legacy default look; it silently flips to DS pills in the header.
Pin both Olo call sites to the legacy variant until Olo is intentionally migrated to DS:
variant={SegmentedControl.SEGMENTED_CONTROL_VARIANT.DEFAULT}Apply the two patches below in the olo-framework-reactnative repo (branch used by the app, e.g. new-arch), then bump the git ref / reinstall — do not patch via patch-package.
- Drop LocationBar’s legacy
segmentControlStyletab border overrides (or restyle for DS tokens). - Let RecentOrderScene inherit DS (remove width hack if track stretches correctly in Header).