Problem/Motivation
#3337643: Apply B5 accordion styles to HTML element details 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
| Comment | File | Size | Author |
|---|---|---|---|
| bootstrap5-incorrect-bg-light-class.png | 10.44 KB | fenstrat |
Issue fork bootstrap5-3482619
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fenstrat#3380986: Layout builder block category label not visible with simple block module enabled looks like the same issue, and it also looks like it wouldn't have been solved by #3337643: Apply B5 accordion styles to HTML element details.
Comment #3
fenstratMR !80 simply removes the 'bg-light' class.
Comment #5
jannakha commentedtested, all good - ready to merge
Comment #7
vladimirausThank you all for your contributions. 🎂
Committed.