Skip to content

<ix-tabs> active tab scrolls out of view in smaller dialogs (works fine in full-width modals) #2260

@GautamLalit

Description

@GautamLalit

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

When I click on first tab — the active tab scrolls out of the visible area, and it scrolls right unexpectedly.
The behavior seems fine when the same tabs are used inside a full-width modal — the active tab stays visible as expected.
Steps to Reproduce:
Create a modal/dialog with around 600px width.
Add several elements inside (enough to enable horizontal scrolling).
Click on the first tab or the one next to it.
Notice that the active tab scrolls away and becomes hidden.
Expected Behavior:
The active tab should remain visible after being clicked.
The scroll should automatically adjust so the active tab stays in view.

What type of frontend framework are you seeing the problem on?

Angular (Standalone)

On which version of the frontend framework are you experiencing the issue?

@angular/[email protected]

Which version of iX do you use?

v3.2.0

Code to produce this issue.

Not Available

Metadata

Metadata

Labels

BacklogIts part of the team backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions