Skip to content

bug(tabs): Tab group with lazy loaded content (matTabContent) - weird/blinking/buggy animation in RTL #31503

Open
@anisabboud

Description

@anisabboud

Description

LTR (smooth animation)
Image

RTL (buggy animation): First -> Second -> Third
Image

Reproduction

  1. Go to https://ng-comp-devapp.web.app/tabs
  2. Scroll down to the "Tab group with lazy loaded content"
  3. Switch tabs: First -> Second -> Third (works fine in LTR)
  4. Switch to RTL and scroll down to the same example "Tab group with lazy loaded content"
  5. Switch tabs: First -> Second -> Third => There's weird blinking in the RTL animation.
    (Other tab types work well with RTL. Only the one with <ng-template matTabContent> is buggy.)

Expected Behavior

RTL animation should slide smoothly like LTR animation when using lazy loaded tabs <ng-template matTabContent>.

Actual Behavior

RTL animation is buggy/blinking when using lazy loaded tabs <ng-template matTabContent>.

Environment

  • Angular: 20.0.5
  • CDK/Material: 20.0.5
  • Browser(s): Chrome

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/tabs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions