Skip to content

feat(tabs): add FrameworkTabs and give every tab the playground style - #4899

Open
thetaPC wants to merge 4 commits into
playground-framework-syncfrom
framework-tabs
Open

thetaPC wants to merge 4 commits into
playground-framework-syncfrom
framework-tabs

Conversation

@thetaPC

@thetaPC thetaPC commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #4894.

The Gestures page has had a TypeScript tab that never showed, because its value was missing from the values list. It shows now.

  • <FrameworkTabs> replaces <Tabs groupId="framework"> on every page in docs and versioned_docs/version-v8. Labels and order come from src/utils/frameworks.ts, so pages can't drift, and tabs are sorted alphabetically.
  • Framework tabs and playgrounds share one switcher, so the docs tabs look like the playground toolbar and both are keyboard-navigable tab lists.
  • Every Docusaurus tab group on the site uses the same pill style, from one Sass mixin. The playground file tabs keep their look until they move to Docusaurus Tabs in a follow-up.
  • npm run lint fails on a new <Tabs groupId="framework">, and CONTRIBUTING documents the component.

Translated pages still use <Tabs groupId="framework">. They share the same storage key, so they stay in sync with the rest of the site.

How to test

In light and dark mode, compared with the live site:

  1. Open the preview's Managing Focus page. The framework tabs above the code look like the playground's framework buttons.
  2. Pick Vue in the tabs. The playground below switches to Vue.
  3. Press Tab until a framework tab is focused, then use the arrow keys. Focus moves between frameworks, and Enter selects one.
  4. Open Gestures. The tab groups now include a TypeScript tab.
  5. Open Play Store. Its tabs aren't framework tabs, and they use the same pill style.
  6. Open Grid and pick Angular. The playground's file tabs look the same as on the live site.

@thetaPC
thetaPC added this pull request to stack #4900 November 24, 2026 23:24
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
ionic-docs Ready Ready Preview Nov 25, 2026 1:33am UTC

Request Review

@thetaPC
thetaPC marked this pull request as ready for review November 25, 2026 23:13
@thetaPC
thetaPC requested a review from a team as a code owner November 25, 2026 23:13
@thetaPC
thetaPC requested a review from ShaneK November 25, 2026 23:13

This branch was successfully deployed

1 active deployment
Preview — c9b29f3e Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant