Shortcode seems to break dark theme CSS #4341
-
I am trying to help a user of my extension to figure out why using my shortcode breaks dark theme styling. Steps to recreate the problem:
project:
type: book
book:
title: "reprex_quartobook"
author: "Jane Doe"
date: "8.2.2023"
chapters:
- index.qmd
- intro.qmd
format:
html:
theme:
light: cosmo
dark: darkly
Note how the icon appears but some of the CSS styles are not applied correctly: |
Beta Was this translation helpful? Give feedback.
Answered by
dragonstyle
Feb 13, 2023
Replies: 1 comment 3 replies
-
It looks like the included ...body {\r\n color: #000;\r\n background: #fff;\r\n}... I'm not sure why, but that appears to be what is causing the issue. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
jmgirard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like the included
bundle.js
is explicitly setting the body background color (and text color as well):I'm not sure why, but that appears to be what is causing the issue.