Skip to content

feat(Tabs): Scroll tabs sideways on phones - #9115

Draft
talissoncosta wants to merge 1 commit into
feat/dropdown-menufrom
feat/tabs-scroll-phones
Draft

talissoncosta wants to merge 1 commit into
feat/dropdown-menufrom
feat/tabs-scroll-phones

Conversation

@talissoncosta

Copy link
Copy Markdown
Contributor
  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Contributes to ENG-643. Stacked on #8996.

On phones, tabs scroll sideways instead of hiding some behind "More tabs". The edge with more tabs behind it fades, and the active tab is kept in view. Desktop keeps the "More tabs" menu.

  • useTabScroller reports which edges can scroll and centres the active tab, respecting reduced motion. It watches each tab too, so the fades update when a tab changes width, such as when the unsaved-changes dot appears.
  • _tabs.scss: the scroller hides its scrollbar and fades the edges with a mask (--tabs-fade).

How did you test this code?

At 393px, in the feature drawer:

  • Fades: end only at the start, both in the middle, start only at the end.
  • Making the Value tab unsaved widens it, and the end fade comes back without scrolling.
  • Tapping a tab scrolls it into view; ?tab=history opens with History in view.
  • At 900px the tabs still overflow into "More tabs".

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Nov 26, 2026 12:39pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 26, 2026 12:39pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 26, 2026 12:39pm UTC

Request Review

@linear-code

linear-code Bot commented Nov 25, 2026

Copy link
Copy Markdown

ENG-643

@github-actions github-actions Bot added front-end Issue related to the React Front End Dashboard feature New feature or request labels Nov 25, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from c86929b to 02fd579 Compare November 25, 2026 21:24
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 25, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from 02fd579 to 4963331 Compare November 25, 2026 21:30
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 25, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from 4963331 to d2bf7b1 Compare November 25, 2026 21:33
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 25, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from d2bf7b1 to 6209601 Compare November 26, 2026 01:02
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 26, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from 6209601 to 70754e6 Compare November 26, 2026 01:46
@github-actions github-actions Bot added the feature New feature or request label Nov 26, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from 69b80e7 to a782e29 Compare November 26, 2026 11:54
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 26, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from a782e29 to 7702747 Compare November 26, 2026 12:04
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 26, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from 7702747 to 54ba62a Compare November 26, 2026 12:17
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 26, 2026
@talissoncosta
talissoncosta force-pushed the feat/tabs-scroll-phones branch from 54ba62a to 805ccff Compare November 26, 2026 12:35
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 26, 2026
Phones show every tab in a row that scrolls sideways, instead of hiding some
behind "More tabs". The edge with more tabs behind it fades, the fades follow
tab width changes such as the unsaved dot, and the active tab is kept in
view. Desktop keeps the "More tabs" menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-preview — 480a4868 Deployed Nov 26, 2026 by vercel[bot]
Preview – flagsmith-frontend-staging — 480a4868 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant