Primary tabs menu does not show up for some content types

Created on 19 January 2024, 5 months ago
Updated 22 January 2024, 5 months ago

Problem/Motivation

After updating Drupal core and Gin Admin theme when editing a node for some content types the tab local tasks menu is not showing up, please see the attached image. From 14 content types only for 1 the local tasks menu is not showing.

Steps to reproduce

Requirements

  • Drupal core updated from D 10.2.1 => D 10.2.2
  • Gin Admin Theme updated from 3.0.0-rc7 => 3.0.0-rc8

I added this piece of code to debug and see the output.

{{ dump(page_title_block) }}
{{ dump(page.header|without(page_title_block)) }}
{{ dump(page.header|without(page_title_block)|render) }}
{% if page.header|without(page_title_block)|render|striptags|trim is not empty %}
  <div class="content-header clearfix">
    <div class="layout-container">
      {{ page.header|without(page_title_block) }}
    </div>
  </div>
{% endif %}

Please also the the attached images, one is showing up properly and the other is empty inside the region section, but after removing the if validation I can see the local tasks menu.

Proposed resolution

A commit πŸ› Recent change to gin.css hides on gin_login templates Fixed is adding a validation to check if this

page.header|without(page_title_block)

is not empty.

After removing that validation I can see the menu, I already debugged it but had no success (Please also see the attached images to compare). I don't know exactly what is happening though but I went through Claro and Gin theme and all seem good.

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

πŸ‡§πŸ‡΄Bolivia alvarito75 Cochabamba

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

Comments & Activities

Production build 0.69.0 2024