imfing / hextra

🔯 Modern, batteries-included Hugo theme for creating beautiful doc, blog and static websites
https://imfing.github.io/hextra/
MIT License
757 stars 177 forks source link

Make tabs switch in unison #493

Open MaxValue opened 3 weeks ago

MaxValue commented 3 weeks ago

Feature Description

The tabs shortcode should make at least all tabs on the same page switch to the same tab, if the same options are used. It would ideal if this state is also synced to other pages.

Problem/Solution

Many documentation projects have tabs like these, usually for different operating systems or editors or file formats. The user decides which one they want to use and switches to tab. Usually the user doesn‘t want to do this every time.

Alternatives Considered

I don‘t think there are any viable alternatives. It could be an easier approach to implement this in a new shortcode in order to make the tabs shortcode not too complicated.

Additional Context