We have been considering implementing basic tabs support in AdaptiveTheme similar to what's available for Bootstrap. I tried searching if this is already implemented but couldn't find anything.

I am willing to work on this and contribute patches, but I wanted to know your thoughts first.

Comments

Jeff Burnz’s picture

Status: Active » Closed (won't fix)

Tabs are usually an unordered list and some JS and CSS, there are loads of libraries out there that do this, so you have options to do your tabs any way you like, the theme should not make assumptions about which one you want.

For example Quicktabs module is popular in Drupal and uses jQuery, and you will find many others, doesn't really make sense for a generic theme to lock down to one method, library etc when most themers/site builders have their own favourites.

hussainweb’s picture

Thanks for looking into it. I understand what you mean about quicktabs, lists, JS and CSS. I was hoping that AdaptiveTheme would contain an implementation of a basic tab system similar to what Bootstrap has: http://getbootstrap.com/javascript/#tabs

My motive here was to build a module like Bootstrap Fieldgroup and I wanted to check if it is a good idea to put the tabs system within AdaptiveTheme itself.

Jeff Burnz’s picture

I would include something like that in the module.

For example in Drupal 8 Adaptivetheme I have removed the Menu Toggle features (mobile menu) in favour of contrib modules taking over these features, its more flexible and gives end users options.

I can see pros and cons for putting things in themes as you describe, the problem space is support and keeping things open for other options, really we start building up so much technical debt it becomes impossible to manage over time, so reducing complexity and and overall size of the toolbox is where I am headed.

hussainweb’s picture

Thanks for your inputs. I appreciate it.