From 51a360f2a16549427aacfe78c51a7a7026feef33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chy=C5=82a?= Date: Tue, 20 Feb 2024 15:02:25 +0100 Subject: [PATCH] [MERX-95] Update error color in datagrid (#4678) * Change critical2 to critical1 for datagrid error * Add changeset --- .changeset/spotty-spies-film.md | 5 +++++ src/components/Datagrid/Datagrid.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/spotty-spies-film.md diff --git a/.changeset/spotty-spies-film.md b/.changeset/spotty-spies-film.md new file mode 100644 index 00000000000..ea4fd1e51ff --- /dev/null +++ b/.changeset/spotty-spies-film.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Improve error color on datagrid diff --git a/src/components/Datagrid/Datagrid.tsx b/src/components/Datagrid/Datagrid.tsx index 7d0fd596494..a254f341c15 100644 --- a/src/components/Datagrid/Datagrid.tsx +++ b/src/components/Datagrid/Datagrid.tsx @@ -239,7 +239,7 @@ export const Datagrid: React.FC = ({ ...(getCellError(item, opts) ? { themeOverride: { - bgCell: themeValues.colors.background.critical2, + bgCell: themeValues.colors.background.critical1, }, } : {}), @@ -254,7 +254,7 @@ export const Datagrid: React.FC = ({ getCellContent, areCellsDirty, themeValues.colors.background.accent1, - themeValues.colors.background.critical2, + themeValues.colors.background.critical1, getCellError, ], );