This request is specific to the new views tabs formatter. When the page loads, the first tab is the one that defaults open. For tab styling purposes, it would be nice to be able to use CSS to style that tab as open. When a tab is clicked, that <li> receives the class "active." Is it possible to, on page load, load the first tab like this: <li class="active">?

Comments

Adrian83 created an issue. See original summary.

  • systemick committed 34cb5ca on 8.x-3.x
    Issue #2883456: class=active on first tab on page load
    
systemick’s picture

Status: Active » Fixed

@Adrian83 I've just added this to the latest release (alpha2). If you update your module you will have this functionality.

Adrian83’s picture

@systemick I simply updated the module, and the first tab now shows that it's active. Thank you very much!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

liquidcms’s picture

Category: Feature request » Bug report

i am using the alpha2 rel which is the same date as this was listed as fixed and the same date as -dev.. so a little difficult to tell if it it made it into the release or not; but..

when page is loaded, the default tab gets it's LI as active but not the A tag inside it. When one is picked; that A tag gets the active class and the default LI still has the class active. Pretty sure that's still wrong. But confusing that no one has reported this in the past 3 yrs.