-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Code inside of a hint fails to render visibly when viewing the document in Dark Mode.
Example
Given the following markdown:
## Using `code`
{{< hint danger >}}
Using `code` while dark.
{{< /hint >}}
The rendering is illegible while viewing it in dark mode:

Possible cause
I think the hint styling over-rides the body font, which also overrides the code's font?
Specifically, in src/sass/_shortcodes.scss:
// {{< hint >}}
.gdoc-hint {
@each $name, $color in $hint-colors {
&.#{$name} {
border-left-color: $color;
background-color: scale-color($color, $lightness: 95%, $saturation: -30%);
color: $body-font-color;
}
}
.gdoc-page__anchor {
display: none;
}
}
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested
