Skip to content

[Bug]: TabsList jumps pixels when you change tabs.... :( #23947

@dzearing

Description

@dzearing

Library

React Components / v9 (@fluentui/react-components)

System Info

chrome, windows

Are you reporting Accessibility issue?

No response

Reproduction

https://stackblitz.com/edit/react-ts-rtwqb7

tabs

Bug Description

Actual Behavior

Change tabs, bold text changes cause pixel jumps around in the tab

Expected Behavior

Change tabs, bold tabs doesn't add pixel width to a tab

This used to be a major eye sore in the Fabric Pivot and was later fixed (by always rendered "selected" text and hiding it so that bold widths would take layout space.)

Now it jumps around when you click around. Feels very unpolished.

Also of minor note is that the grey "hover underline" shows momentarily when you select a tab, while the brand colored underline gracefully glides on top of it. Recommend not showing the hover underline when something becomes selected... would make it much more polished.

Logs

n/a

Requested priority

Normal

Products/sites affected

any using tabs

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions