About this set
A Release notes card with eight version tabs, v4.8 down to v4.1, in a single row that scrolls sideways instead of wrapping, with white fades at both edges to hint that more tabs are hidden. The selected version fills with indigo and the notes for that release appear below a divider. Use it when the number of tabs is open-ended: versions, dates, categories, team members or product variants, especially on phones where eight tabs never fit. The row keeps its own horizontal scroll with the scrollbar hidden, and scroll-padding keeps the selected tab clear of the edge fades. Moving with the arrow keys focuses the next tab, which the browser scrolls into view, and a clicked tab is scrolled fully into view as well, so the selected tab is never left half hidden. The script sets aria-selected, the roving tabindex and the hidden panels. The Bootstrap version is .nav-pills with the .flex-nowrap and .overflow-x-auto utilities and the Tab plugin, and the Tailwind version draws the fades with before and after utilities.
What’s included
- Single scrolling row that never wraps
- Edge fades hint at hidden tabs
- Selected and focused tabs scrolled into view
- Scroll padding keeps tabs clear of the fades
- Converted from radio inputs to real ARIA tabs
Accessibility
The versions are tabs in a tablist labelled Release, each controlling a panel labelled by its tab. Only the selected tab is in the Tab order; Left and Right (or Up and Down) move between tabs and select them, and Home and End jump to the first and last tab. Because the focused tab is a real button inside the scroller, keyboard focus always scrolls into view, and it is drawn as a 2px indigo outline. Colour transitions are removed under prefers-reduced-motion.
Customise it
Change --st-accent, --st-muted, --st-text and --st-card on .stabs (plain CSS and Bootstrap); keep --st-card equal to the card background so the fades blend. Bootstrap also takes --bs-nav-pills-link-active-bg and the --bs-nav-link-* variables. In Tailwind edit the --color-st-* theme colours.

















