Skip to content

Commit

Permalink
refactor: Declare default CSS symbol colors under :host as well
Browse files Browse the repository at this point in the history
This is apparently needed when the docs are served under a shadow DOM (for example, Backstage seems to do this, and `:root` variables aren't picked up).

See https://developer.mozilla.org/en-US/docs/Web/CSS/:host.

PR-186: #186
  • Loading branch information
ElementalWarrior authored Oct 10, 2024
1 parent 6dafa9a commit 3b9dba2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

/* Symbols in Navigation and ToC. */
:root,
:root, :host,
[data-md-color-scheme="default"] {
--doc-symbol-attribute-fg-color: #953800;
--doc-symbol-function-fg-color: #8250df;
Expand Down

0 comments on commit 3b9dba2

Please sign in to comment.