Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tab stripe positioning when Tabs.TabList overflows #2466

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

r100-stack
Copy link
Member

@r100-stack r100-stack commented Mar 14, 2025

Changes

Fixes #2465.

Looks like the bug was happening since currentTabRect?.x was not taking into account the scroll position. This PR fixes it by taking the tablistRef.current?.scrollLeft into account.

Testing

Added an e2e test based on the sandbox code. Also manually tested the sandbox from the issue.

Docs

Added changeset.

@r100-stack r100-stack self-assigned this Mar 14, 2025
@r100-stack r100-stack marked this pull request as ready for review March 14, 2025 19:47
@r100-stack r100-stack requested a review from a team as a code owner March 14, 2025 19:47
@r100-stack r100-stack requested review from mayank99 and removed request for a team March 14, 2025 19:47
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.

Active tab indicator is off with type="borderless" when list of tabs does not fit container
1 participant