details.html.twig should not add bg-light class

Created on 23 October 2024, 7 months ago

Problem/Motivation

🐛 HTML element DETAILS is rendered with extra border on the bottom Needs review refactored details.html.twig and in doing so added a bg-light class to <details>. When a details element is used in a "dark" context, i.e. one which isn't "light", this introduces an unwanted light colour background which cannot easily be overridden due to bs's !important rule on .bg-light.

Steps to reproduce

Use a module like lb_claro which renders the side bar in a dark version, view a details element and note the text rendered on the light background is illegible.

Screenshot of the issue:

Proposed resolution

I can't see a reason for bg-light class given a details element might appear in context where the light version isn't correct. Lets try removing it.

Remaining tasks

Test

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇦🇺Australia fenstrat Australia

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