From a27586461820513fc926245c233d200bd655dd9d Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Wed, 13 Sep 2023 16:47:58 -0300 Subject: [PATCH 1/3] chore: update font-danger color --- ee/packages/ui-theming/src/paletteDark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/packages/ui-theming/src/paletteDark.ts b/ee/packages/ui-theming/src/paletteDark.ts index 9898c7fe95f9..cdb60efffeac 100644 --- a/ee/packages/ui-theming/src/paletteDark.ts +++ b/ee/packages/ui-theming/src/paletteDark.ts @@ -51,7 +51,7 @@ export const palette = [ { name: 'font-default', token: 'N400', color: '#E4E7EA' }, { name: 'font-titles-labels', token: '', color: '#F2F3F5' }, { name: 'font-info', token: '', color: '#739EDE' }, - { name: 'font-danger', token: '', color: '#CF6E7A' }, + { name: 'font-danger', token: '', color: '#D88892' }, { name: 'font-pure-black', token: '', color: '#2F343D' }, { name: 'font-pure-white', token: '', color: '#FFFFFF' }, ], From 625199348b1c146466f2740149724f7693b43120 Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Wed, 13 Sep 2023 16:48:21 -0300 Subject: [PATCH 2/3] chore: add default palette as fallback --- ee/packages/ui-theming/src/PaletteStyleTag.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ee/packages/ui-theming/src/PaletteStyleTag.tsx b/ee/packages/ui-theming/src/PaletteStyleTag.tsx index 52d912388987..8a02bc131fdf 100644 --- a/ee/packages/ui-theming/src/PaletteStyleTag.tsx +++ b/ee/packages/ui-theming/src/PaletteStyleTag.tsx @@ -3,7 +3,6 @@ import { createPortal } from 'react-dom'; import { codeBlock } from './codeBlockStyles'; import { convertToCss } from './helpers/convertToCss'; -import { filterOnlyChangedColors } from './helpers/filterOnlyChangedColors'; import { useCreateStyleContainer } from './hooks/useCreateStyleContainer'; import { useThemeMode } from './hooks/useThemeMode'; import { defaultPalette } from './palette'; @@ -20,9 +19,9 @@ export const PaletteStyleTag = memo(function PaletteStyleTag() { if (theme === 'high-contrast') { return paletteHighContrast; } - return {}; + return defaultPalette; }; - const palette = convertToCss(filterOnlyChangedColors(defaultPalette, getPalette()), '.rcx-content--main'); + const palette = convertToCss(getPalette(), '.rcx-content--main'); return createPortal(theme === 'dark' ? palette + codeBlock : palette, useCreateStyleContainer('main-palette')); }); From b9735da976a6dc4c3b567022e9363d7ed540b2c0 Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Wed, 13 Sep 2023 17:55:23 -0300 Subject: [PATCH 3/3] chore: add selector `.rcx-tile` to main palette --- ee/packages/ui-theming/src/PaletteStyleTag.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/packages/ui-theming/src/PaletteStyleTag.tsx b/ee/packages/ui-theming/src/PaletteStyleTag.tsx index 8a02bc131fdf..ce911ce4a122 100644 --- a/ee/packages/ui-theming/src/PaletteStyleTag.tsx +++ b/ee/packages/ui-theming/src/PaletteStyleTag.tsx @@ -21,7 +21,7 @@ export const PaletteStyleTag = memo(function PaletteStyleTag() { } return defaultPalette; }; - const palette = convertToCss(getPalette(), '.rcx-content--main'); + const palette = convertToCss(getPalette(), '.rcx-content--main, .rcx-tile'); return createPortal(theme === 'dark' ? palette + codeBlock : palette, useCreateStyleContainer('main-palette')); });