Skip to content

Commit c90f57c

Browse files
authored
Improve icons readability on dark-mode
Improve readability of icons when dark-mode is active.
1 parent 46724df commit c90f57c

File tree

1 file changed

+5
-0
lines changed
  • src/Report/Html/Renderer/Template/css

1 file changed

+5
-0
lines changed

src/Report/Html/Renderer/Template/css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@
6868
--bs-warning-text-emphasis: light-dark(#664d03, #ffda6a);
6969
}
7070

71+
@media (prefers-color-scheme: dark) {
72+
/* Invert icon's colors on dark mode to improve readability */
73+
img.octicon { filter: invert(1); }
74+
}
75+
7176
body {
7277
font-family: sans-serif;
7378
font-size: 1em;

0 commit comments

Comments
 (0)