Created on 15 August 2023, over 1 year ago
Updated 23 August 2024, 3 months ago

Problem/Motivation

Tooltips now appear for the h2 h3 headings as well, with the font-size from the heading. How can I skip showing the tooltips for headings?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.1

Component

Code

Created by

🇳🇱Netherlands jandewit6

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

Comments & Activities

  • Issue created by @jandewit6
  • 🇦🇺Australia mingsong 🇦🇺

    There is not h2 or h3 tag in the tooltip template.

    https://git.drupalcode.org/project/tooltip_taxonomy/-/blob/2.1.1/templat...

    I don't know where the tags you mentioned come from, maybe come from your theme?

    Also there is a field setting to specify what tags are allowed for the tooltip.

  • Status changed to Postponed: needs info over 1 year ago
  • 🇦🇺Australia mingsong 🇦🇺
  • I think this is referring to the tooltip inheriting the formatting of the text in which the taxonomy term is present. For example if the node text is bold (ie formatted as <strong>) and contains the term my term:
    A sentence with my term in it.

    then the tooltip text for 'my term' will be bold as well. Likewise for h2 and other heading levels.

    For the <strong> example I added some CSS resets (also resets some other styles):

    .tx-tooltip .tx-tooltip-text {
      font-style: normal;
      font-weight: normal;
      letter-spacing: normal;
      line-break: auto;
      text-decoration: none;
      text-shadow: none;
      text-transform: none;
      white-space: normal;
      word-break: normal;
      word-spacing: normal;
      word-wrap: normal;
    }
  • Status changed to Active 3 months ago
Production build 0.71.5 2024