fix: Fix dark mode small issues (#7573)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Mutasem Aldmour 2023-11-01 16:27:32 +01:00 committed by GitHub
parent cc2bd2e19c
commit 1d81afcbdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 2 deletions

View file

@ -317,7 +317,7 @@ export default defineComponent({
}
code {
background-color: var(--color-background-base);
background-color: var(--color-sticky-code-background);
padding: 0 var(--spacing-4xs);
color: var(--color-secondary);
}

View file

@ -36,6 +36,9 @@
--color-canvas-selected: var(--prim-gray-0-alpha-025);
--node-type-main-color: var(--prim-gray-420);
// Sticky
--color-sticky-code-background: var(--color-background-light);
// Expressions
--color-valid-resolvable-foreground: var(--prim-color-alt-a-tint-300);
--color-valid-resolvable-background: var(--prim-color-alt-a-alpha-025);

View file

@ -77,6 +77,7 @@
--color-sticky-default-background: var(--prim-color-alt-d);
--color-sticky-default-border: var(--prim-color-alt-d-shade-150);
--color-sticky-font: var(--prim-gray-740);
--color-sticky-code-background: var(--color-background-base);
// Expressions
--color-valid-resolvable-foreground: var(--prim-color-alt-a);

View file

@ -208,6 +208,7 @@ export default defineComponent({
margin-top: var(--spacing-xs);
.button {
color: var(--color-text-dark);
font-weight: var(--font-weight-normal);
--button-border-color: var(--color-foreground-base);
--button-background-color: var(--color-background-base);

View file

@ -596,7 +596,7 @@ export const getBackgroundStyles = (
'background-position': `left ${offsetPosition[0]}px top ${offsetPosition[1]}px`,
};
if (squareSize > 10.5) {
const dotColor = getStyleTokenValue('--color-canvas-dot');
const dotColor = getStyleTokenValue('--color-canvas-dot', true);
return {
...styles,
'background-image': `radial-gradient(circle at ${dotPosition}px ${dotPosition}px, ${dotColor} ${dotSize}px, transparent 0)`,