Active tab classes overridden

Created on 9 January 2025, 12 days ago

The tab component template has:

{{ link|set_attribute('role', 'tab')|add_class('tab') }}

But the active tab gets printed as (tab class missing):

<a href="/admin/appearance/css-variables" class="is-active" data-component-id="ui_suite_daisyui:tab" role="tab" data-drupal-link-system-path="admin/appearance/css-variables">CSS variables</a>

Adjacent tabs look like:

<a href="/admin/appearance/settings" data-component-id="ui_suite_daisyui:tab" role="tab" class="tab" data-drupal-link-system-path="admin/appearance/settings">Settings</a>

This is caused by the related issue: https://www.drupal.org/project/drupal/issues/3494015 πŸ› Link render element overwrites CSS class Active

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024