Placeholder class persists over node title

Created on 17 March 2025, about 1 month ago

Problem/Motivation

When using the Gin theme – viewing a node that can be edited, the "Edit {node_title}" in the Gin Breadcrumb has a `placeholder` class applied to the `em` tag around the node title. This causes a gray bar to overlay/obscure the node title.

Proposed resolution

I assume the placeholder tag needs to be removed after the node title is loaded/rendered by Drupal

🐛 Bug report
Status

Active

Version

3.0

Component

User interface

Created by

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

Comments & Activities

  • Issue created by @icon5177
  • 🇬🇷Greece kostask

    I cannot reproduce this behavior. Can you provide some steps to reproduce this problem?

  • To reproduce:
    1. Have the Gin theme enabled
    2. Have a node that you can edit
    3. Be logged in as a user

    Access the editable node from the "front end" of the site (e.g., not through the admin menus or content list)

    The gin breadcrumb bar across the top shows "Edit" and then (in theory) the name of the node – right now this is where the `placeholder` class is being applied.

    Making an educated guess, I assume the placeholder class should be there while the name of the node is being fetched. The class should then be removed when the data from the node has been retrieved, but for some reason this later/final step isn't happening.

  • Another element that might be relevant, the link in the breadcrumb follows the pattern `/node/{node_id}/edit`, while the display within the `em` tag is pulling the title from the node, rather than just the id

  • More information again

    I've found that there's a conflict between bootstrap `.placeholder` and the `.gin-breadcrumb__link` classes. Bootstrap sets the text of the placeholder class to `currentcolor`, and gin sets the background color of the element to `currentcolor`, thus the font and the background aren't distinguishable from one another.

    Is there a fix for this?

Production build 0.71.5 2024