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

bug(tabs / mat-tab-group): mat-tab-label-container scroll inc mat-tab-label that starts from hidden area is not showed label #25267

Open
1 task
RomanKhomenko opened this issue Jul 13, 2022 · 1 comment
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions

Comments

@RomanKhomenko
Copy link

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

No response

Description

If selectedIndex set up to the last mat-tab that is in hidden area, scroll works incorrectly.

Reproduction

Here is a StackBlitz sample that reproduces the issue.

Expected Behavior

When active tab label starts from hidden area of tab group with many items (selected index), label should be fully visible.

Actual Behavior

If the mat-tab-group has active tab in the hidden area, such tab label is partialy visible. Scroll does not work propely.

Environment

  • Angular: 14
  • CDK/Material: 14
  • Browser(s): Chrome 103
  • Operating System: Windows 10
@RomanKhomenko RomanKhomenko added the needs triage This issue needs to be triaged by the team label Jul 13, 2022
@RomanKhomenko RomanKhomenko changed the title bug(tabs / mat-tab-group): mat-tab-label-container scroll inc mat-tab-label that starts from hidden aria is not showed label bug(tabs / mat-tab-group): mat-tab-label-container scroll inc mat-tab-label that starts from hidden area is not showed label Jul 13, 2022
@zarend zarend added P4 A relatively minor issue that is not relevant to core functions area: material/tabs and removed needs triage This issue needs to be triaged by the team labels Jul 26, 2022
@lou816
Copy link

lou816 commented Dec 27, 2023

I've encountered the same problem and would like to know if there is a solution at present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/tabs P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

No branches or pull requests

3 participants