HealthCatalyst / Fabric.Cashmere

Health Catalyst’s comprehensive design system.
http://cashmere.healthcatalyst.net
Apache License 2.0
66 stars 76 forks source link

Selected tab stays in the view #2278

Open amaury14 opened 6 months ago

amaury14 commented 6 months ago

In the cashmere tabs using hc-tab-set component, we want to always have in view the selected tab.

As of now, when you have several tabs that don't fit on the screen, so we use the arrows in the sides and mouse wheel to scroll.

When we select a tab that was not in the view at first (one of the last tabs, you need to scroll to see those), then you go away from that view, the tab was visible scrolled to it. When you go back, the tabs are scrolled to the start, the user has to scroll to see the selected one.

We would like the selected tab to stays in view.