Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The required marker is not added for horizontal and vertical tabs when using the Tao based themes - Fubik, Rubik.
The Tao theme makes the fieldset a template and processes with tao_preprocess_fieldset() which adds a class of "fieldset" to all fieldsets. This causes the field_group.js targeting for fieldsets to trigger and process the fieldset, and since the "once" class of "fieldgroup-effects-processed" is added, then the horizontal or vertical tabs are not processed.
Comment | File | Size | Author |
---|---|---|---|
#1 | field_group-tao-fieldset-fix-2295837-1.patch | 760 bytes | recrit |
Comments
Comment #1
recrit CreditAttribution: recrit commentedThe attached patch adds ":not(.horizontal-tabs-pane,.vertical-tabs-pane))" to the fieldset group's targeting. This stops it from processing fieldsets for tabs.
Comment #2
dinarcon CreditAttribution: dinarcon commentedHi @recrit, I had a similar issue with bootstrap based themes. In that case, bootstrap exposes a javascript behaviour that can be used to check against and add the marker without changing the default selector. You can have a look at #2390133: Required vertical tab marker not shown on bootstrap based themes. It might be implemented the same way for Fubik/Rubik/Tao.
Comment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 5 year old patch in #1 to field_group.js applied cleanly to the latest field_group 7.x-1.x-dev, but still needs review.