tabs_on_rails icon indicating copy to clipboard operation
tabs_on_rails copied to clipboard

Parameterize class of current tab

Open ruurd opened this issue 13 years ago • 2 comments

Please make the CSS class name for the active tab parameterizable. Currently the current tab is adorned with class="current" however for example bootstrap does the same with class="active".

ruurd avatar Jul 23 '12 11:07 ruurd

I agree. This is something I would have done a while ago.

weppos avatar Jul 24 '12 02:07 weppos

I'm not super great with using your gem yet...but you did add this in right?

  <%= tabs_tag :open_tabs => { :class => "nav nav-tabs" },  :active_class => "active" do |tab| %>
``

The only thing I see is for some reason, it still throw's <span></span> around it & I'm wondering if that's conflicting with my bootstrap with active_class?

Is the <span> absolutely required or can we disable it?

Mirv avatar Jun 24 '17 17:06 Mirv