You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Tabs component with a) more tabs than fit in the width of the layout and b) badged content, tabs wrap to a second spaced-out line before the More views disclosure.
Expected behavior
Tabs should fit on a single line with More views hiding the rest
Actual behavior
This issue does not reproduce using LegacyTabs (with badges included in the content ReactNode itself):
nor with new Tabs without any badges:
but with TabProps.badge added, the wrapping behaviour is seen consistently on a variety of screen sizes
Steps to reproduce the problem
Use Tabs within a Card or LegacyCard with 10+ tabs with badge set and a variety of long content titles.
Or run npx envinfo --system --binaries --browsers --npmPackages react,react-dom,@shopify/polaris to provide specifications on your environment including version numbers, browser, device, and operating system.
Issue summary
When using the
Tabs
component with a) more tabs than fit in the width of the layout and b) badged content, tabs wrap to a second spaced-out line before theMore views
disclosure.Expected behavior
Tabs should fit on a single line with
More views
hiding the restActual behavior
This issue does not reproduce using

LegacyTabs
(with badges included in the content ReactNode itself):nor with new

Tabs
without any badges:but with

TabProps.badge
added, the wrapping behaviour is seen consistently on a variety of screen sizesSteps to reproduce the problem
Use
Tabs
within aCard
orLegacyCard
with 10+ tabs withbadge
set and a variety of longcontent
titles.Reduced test case
Reproduced in code sandbox here: https://codesandbox.io/p/sandbox/flamboyant-paper-9ltffg

Specifications
Or run
npx envinfo --system --binaries --browsers --npmPackages react,react-dom,@shopify/polaris
to provide specifications on your environment including version numbers, browser, device, and operating system.Paste the results here:
The text was updated successfully, but these errors were encountered: