Skip to content

Commit

Permalink
restore inline codeblock highlighting for light mode (microsoft#5178)
Browse files Browse the repository at this point in the history
There was a css variable being set on the `:root` level that used to
always be overridden in light mode until microsoft#5147. This controls the
background color of an inline code block. Moved this variable to only be
defined in dark mode instead.

---------

Co-authored-by: Christopher Radek <[email protected]>
  • Loading branch information
chrisradek and Christopher Radek authored Nov 23, 2024
1 parent 660724a commit 1226640
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
--sl-color-text-accent: var(--colorBrandForeground1);
--sl-color-gray-2: var(--colorNeutralForeground1);
--sl-color-gray-5: var(--colorNeutralStroke1);
}

:root[data-theme="dark"] {
--sl-color-bg-inline-code: var(--ec-frm-edBg);
}

Expand Down

0 comments on commit 1226640

Please sign in to comment.