core icon indicating copy to clipboard operation
core copied to clipboard

d2l-tabs: Scrolling enhancements

Open TristanDevos opened this issue 2 years ago • 2 comments

  1. It would be nice if the tabs component would automatically scroll to take advantage of the full width its given when the screen resizes.

Daylight:

chrome_45BfvC16TQ

Consistent-Evaluation (using the Primary-Secondary template)

chrome_dXg9r4egBB

  1. Might be nice and intuitive to allow swiping across tabs on mobile instead of only having the left and right arrow buttons.

Example use case in Consistent-Evaluation

chrome_I5NECYyv2k

TristanDevos avatar Mar 15 '23 15:03 TristanDevos

Yeah these are great suggestions. If these are improvements that are required for your tool, my recommendation is to reach out in #wc-tabs in Slack and we can loop in Nathan and Asja to prioritize.

I know the swipe functionality was discussed when this was originally built. To some extent it didn't fall into scope, but also, it was not going to be able to mimics browsers normal behaviour for swipe/flicking/acceleration (due to the virtual scroll implementation), at least not without a heavy lift.

dbatiste avatar Mar 15 '23 16:03 dbatiste

If these are improvements that are required for your tool, my recommendation is to reach out in #wc-tabs in Slack and we can loop in Nathan and Asja to prioritize.

Thanks Dave. These aren't required for CE currently, they're more 'nice to haves'. No need to prioritize

TristanDevos avatar Mar 15 '23 16:03 TristanDevos