Created on 15 August 2023, about 2 years 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 about 2 years 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 about 1 year ago
  • Assigned to SmovS
  • πŸ‡ΊπŸ‡¦Ukraine SmovS Lutsk
Production build 0.71.5 2024