Skip to content

The open alternative to Salesforce, designed for AI.

Fix layout edition mode dark mode text color (#19992)

Weikoaa4aea0f9b0b
diff --git a/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBar.tsx b/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBar.tsx
index c42e7a9f096..c156d06cfe4 100644
--- a/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBar.tsx
+++ b/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBar.tsx
@@ -5,6 +5,7 @@ import { useAtomValue } from 'jotai';
import { useContext } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { IconCheck, IconPaint } from 'twenty-ui/display';
+import { GRAY_SCALE_LIGHT } from 'twenty-ui/theme';
import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants';
import { LayoutCustomizationBarMenuDropdown } from '@/layout-customization/components/LayoutCustomizationBarMenuDropdown';
@@ -24,11 +25,20 @@ const StyledContainer = styled.div`
align-items: center;
background: ${themeCssVariables.color.blue};
box-sizing: border-box;
- color: ${themeCssVariables.font.color.inverted};
+ color: ${GRAY_SCALE_LIGHT.gray1};
display: flex;
justify-content: space-between;
padding: ${themeCssVariables.spacing[2]} ${themeCssVariables.spacing[3]};
width: 100%;
+
+ button,
+ button * {
+ color: ${GRAY_SCALE_LIGHT.gray1};
+ }
+
+ button[type='submit']:not(:disabled):not(:focus) {
+ border-color: color(display-p3 1 1 1 / 0.5);
+ }
`;
const StyledLeftSection = styled.div`
diff --git a/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBarMenuDropdown.tsx b/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBarMenuDropdown.tsx
index f6876c648ab..0c8fec106d1 100644
--- a/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBarMenuDropdown.tsx
+++ b/packages/twenty-front/src/modules/layout-customization/components/LayoutCustomizationBarMenuDropdown.tsx
@@ -3,6 +3,7 @@ import { useLingui } from '@lingui/react/macro';
import { IconDotsVertical, IconReload } from 'twenty-ui/display';
import { LightIconButton } from 'twenty-ui/input';
import { MenuItem } from 'twenty-ui/navigation';
+import { GRAY_SCALE_LIGHT } from 'twenty-ui/theme';
import { themeCssVariables } from 'twenty-ui/theme-constants';
import { LAYOUT_CUSTOMIZATION_BAR_DROPDOWN_ID } from '@/layout-customization/constants/LayoutCustomizationBarDropdownId';
@@ -19,7 +20,7 @@ const StyledInvertedIconButtonWrapper = styled.span`
display: flex;
button {
- color: ${themeCssVariables.font.color.inverted};
+ color: ${GRAY_SCALE_LIGHT.gray1};
}
button:hover {