Disable color transitions on links to avoid issues in dark mode

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-04-26 17:16:59 +02:00
parent 35e32bbf4c
commit cb8c848a38
2 changed files with 17 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Disable color transitions on links to avoid issues in dark mode.
@@ -197,10 +197,21 @@ export const Reader = ({ entityId, onReady }: Props) => {
}
.md-nav--primary > .md-nav__title [for="none"] {
padding-top: 0;
}
}
}
`,
}),
injectCss({
// Disable CSS animations on link colors as they lead to issues in dark
// mode. The dark mode color theme is applied later and theirfore there
// is always an animation from light to dark mode when navigation
// between pages.
css: `
.md-nav__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
transition: none;
}
`,
}),
injectCss({
// Admonitions and others are using SVG masks to define icons. These
// masks are defined as CSS variables.