Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Angular Material Tabs with sticky first tab #8056

Closed
FlashTime27 opened this issue Mar 18, 2023 · 0 comments
Closed

Angular Material Tabs with sticky first tab #8056

FlashTime27 opened this issue Mar 18, 2023 · 0 comments
Labels
feature-request Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.

Comments

@FlashTime27
Copy link

I'm using Angular Material tabs to display content on a page. However, I want the first tab to remain sticky and not scroll with the other tabs so that users can easily access it no matter how many other tabs there are. Currently, the first tab is part of the scroll and moves with the other tabs when the user scrolls. How can I make the first tab sticky and not part of the scroll?

So, for example, if I have 11 tabs and there is enough space on the screen to display only 5 of them, I want the first tab to always be visible, and the remaining 10 to be scrollable and visible that way. Currently, all 11 tabs are within the same scrollable area, so when I scroll to the right, the first tab disappears from view.

similar functionality in tables would be 'Table with sticky columns'

I already asked that on stackoverflow, but I still haven't received any answer as to whether it is possible and how
I also provided example code and two images of how I would like it to look in the stackoverflow question.

can this be done somehow?

@asyncLiz asyncLiz added the Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository. label Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.
Projects
None yet
Development

No branches or pull requests

2 participants