Styling problem in Claro inside Paragraphs widget with #2960456

Created on 17 January 2024, 10 months ago
Updated 18 January 2024, 10 months ago

Problem/Motivation

I recently applied the fix in #2960456 Deal with multiple vocabularies Needs review to my installation and chose to display multiple vocabularies as separate widgets.

This causes styling issues when used inside a paragraphs widget in Claro because this theme has a special case for <details>-elements inside <td>-elements: #3300941 .

The root cause is the following style of this module:

.field--widget-term-reference-tree .form-item {
  display: inline-block;
}

I can't read up the reasoning for this style because it is part of the initial commit. But my best guess is that it is meant for the tree items, because apart from the <fieldset>-element, those are the only ones I can find when querying this selector.
And it also applying to the <fieldset>-element is the exact reason for my styling issue.

Proposed resolution

Change the existing style to

.term-reference-tree-level .form-item {
  display: inline-block;
}

applying to the same elements except the <fieldset>-element.

🐛 Bug report
Status

Needs review

Version

2.0

Component

User interface

Created by

🇩🇪Germany tgauges

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024