• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zendeskgarden / react-components / 44392675742
97%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 08:39PM UTC
Jobs 1
Files 637
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Nov 2026 08:35PM UTC coverage: 97.359% (+0.07%) from 97.294%
44392675742

push

github

web-flow
feat(segmented-control): port SegmentedControl to v10 (#2200)

Adds `SegmentedControl`, a radio group of two or more segments where a pill slides to the selected segment with a spring animation. Segments are `SegmentedControl.Segment` children. It supports a compact density (`isCompact`), full width (`isFullWidth`), and controlled or uncontrolled selection (`value` or `defaultValue`). With neither, nothing is selected until the user chooses a segment.

Behavior

- Native radio inputs inside a `role="radiogroup"`. The radios share a `name`, so the browser provides one Tab stop (the selected segment, or the first when none is selected).
- Arrow keys move focus and selection, wrap at either end, and flip in RTL. Space selects.
- The pill is decorative (`aria-hidden`). It springs on pointer selection, snaps on keyboard selection, and snaps under `prefers-reduced-motion`. Selection state never waits for the pill to be measured.
- Forced-colors mode outlines the selected segment.
- Development warnings: no accessible name, and duplicate segment values.

Differences and limits

- `isCompact` replaces a `size` enum, because there are only two densities.
- Transition timings are named constants, because Garden has no motion tokens.
- There is no `dir` prop. Direction follows `theme.rtl`.
- The pill is separated from the track by its shadow only, as in the design. That measures 1.11:1 (light) and 1.25:1 (dark) against the track, below the 3:1 in WCAG 1.4.11 (non-text contrast).
- A disabled state, a `name` prop and per-segment `disabled` are not part of this change.
- Standalone use only. Toolbar use is not supported.
- The control never shrinks below its labels, so many segments overflow narrow containers.

Verification

- Unit tests cover selection, keyboard behavior (including RTL and wrapped or conditional segments), warnings, and styling.
- Lint, typecheck, build and the package check pass.
- Checked in Chromium: light and dark mode, Bedrock, keyboard focu... (continued)

3931 of 4166 branches covered (94.36%)

Branch coverage included in aggregate %.

226 of 226 new or added lines in 13 files covered. (100.0%)

6979 of 7040 relevant lines covered (99.13%)

1502.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44392675742.1 18 Nov 2026 08:39PM UTC 637
97.36
GitHub Action Run
Source Files on build 44392675742
  • Tree
  • List 637
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44392675742
  • 60faa730 on github
  • Prev Build on main (#44184541806)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc