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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recrit’s picture

Status: Active » Needs review
FileSize
760 bytes

The attached patch adds ":not(.horizontal-tabs-pane,.vertical-tabs-pane))" to the fieldset group's targeting. This stops it from processing fieldsets for tabs.

dinarcon’s picture

Hi @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.

Chris Matthews’s picture

The 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.