Skip to content

How can I change the text color of the pop up 'Copied!' when the copy code button is clicked? #11519

Closed Answered by jimjam-slam
aymennasri asked this question in Q&A
Discussion options

You must be logged in to vote

I can't speak to the SCSS side, but on the CSS side, on quarto.org it looks like the tooltip is styled by the CSS property --bs-tooltip-bg:

.tooltip {
  --bs-tooltip-color: #fff;
  --bs-tooltip-bg: #000;
}

If you're looking to change this in dark mode specifically, you could add something like:

body.quarto-dark .tooltip {
  --bs-tooltip-bg: #fff;
  --bs-tooltip-color: #000;
}

(You might need some extra styling to also change the pointy "tip" of the tooltip, too, but I'm hoping it also uses the custom CSS property!)

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@aymennasri
Comment options

@mcanouil
Comment options

@aymennasri
Comment options

@jimjam-slam
Comment options

Answer selected by aymennasri
@cderv
Comment options

@aymennasri
Comment options

@aymennasri
Comment options

@cderv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
html Issues with HTML and related web technology (html/css/scss) themes Related to HTML theming or any other style related issue (like highlight-style)
4 participants