Skip to content

Commit

Permalink
[MERX-95] Update error color in datagrid (#4678)
Browse files Browse the repository at this point in the history
* Change critical2 to critical1 for datagrid error

* Add changeset
  • Loading branch information
poulch authored Feb 20, 2024
1 parent c10dd8a commit 51a360f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-spies-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Improve error color on datagrid
4 changes: 2 additions & 2 deletions src/components/Datagrid/Datagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export const Datagrid: React.FC<DatagridProps> = ({
...(getCellError(item, opts)
? {
themeOverride: {
bgCell: themeValues.colors.background.critical2,
bgCell: themeValues.colors.background.critical1,
},
}
: {}),
Expand All @@ -254,7 +254,7 @@ export const Datagrid: React.FC<DatagridProps> = ({
getCellContent,
areCellsDirty,
themeValues.colors.background.accent1,
themeValues.colors.background.critical2,
themeValues.colors.background.critical1,
getCellError,
],
);
Expand Down

0 comments on commit 51a360f

Please sign in to comment.