Skip to content

Wildcard Tabs: support longTabList property to make it scrollable

Warren Gifford requested to merge og/tabs-scroll into main

Created by: oleggromov

Problem

Based on @eseliger's report, Tab List (toggles) may contain too many elements that are wrapped onto a new line, which isn't what's sometimes expected - and doesn't look good too.

Screenshot 2022-05-02 at 13 46 11

Solution

Add a longTabList property with two possible values - wrap (default) and scroll, which toggles native horizontal scrolling for long tab lists.

https://user-images.githubusercontent.com/2196347/166222892-8e67ced3-999d-4321-890d-383260d139b7.mov

Scroll bar size issues

The scroll bar is fairly thick and blocks access to content. @AlicjaSuska wdyt we should do with that? I can try customizing its height, although it won't be "standard" anymore, or maybe increasing padding so that tab bottom borders aren't obscured by the scroll bar.

Test plan

  1. Check out the branch
  2. Open storybook yarn storybook:wildcard
  3. Check that tabs behave as described

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading