Closed
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
18
Description
Using mat-tab-nav-bar in version 18, no matter which tab you chose you would see the ink bar animate to that new tab. Now in 19 it only animates to the left.
Reproduction
Steps to reproduce:
- navigate to https://v18.material.angular.io/components/tabs/examples#tab-nav-bar-basic
- switch tab focus
- note the animation
- navigate to any version of 19, such as https://next.material.angular.io/components/tabs/examples
- choose a tab to the right
- note the lack of animation
- choose a tab to the left
- note the animation
Expected Behavior
Choosing a tab in any direction should animate.
Actual Behavior
Animation only happens when choosing a tab to the left of the current active.
Environment
- Angular: ^19.0.0
- CDK/Material: ^19.0.4
- Browser(s): Chrome - 131.0.6778.205
- Operating System (e.g. Windows, macOS, Ubuntu): Windows