Fix colors for change and error cells in datagrid (#3422)

* Fix colors for change and error cells in datagrid

* Fix borader overlapping in bottom of datagrid
This commit is contained in:
Paweł Chyła 2023-03-28 08:20:14 +02:00 committed by GitHub
parent b576f8f8e5
commit 0a5100c4a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,15 +171,14 @@ export const Datagrid: React.FC<DatagridProps> = ({
...(changed ...(changed
? { ? {
themeOverride: { themeOverride: {
bgCell: themeValues.colors.background.surfaceBrandHighlight, bgCell: themeValues.colors.background.surfaceBrandSubdued,
}, },
} }
: {}), : {}),
...(getCellError(item, opts) ...(getCellError(item, opts)
? { ? {
themeOverride: { themeOverride: {
bgCell: bgCell: themeValues.colors.background.surfaceCriticalDepressed,
themeValues.colors.background.interactiveCriticalHovering,
}, },
} }
: {}), : {}),
@ -447,7 +446,6 @@ export const Datagrid: React.FC<DatagridProps> = ({
/> />
<Box <Box
position="relative" position="relative"
__marginTop="-1px"
backgroundColor="plain" backgroundColor="plain"
borderTopWidth={1} borderTopWidth={1}
borderTopStyle="solid" borderTopStyle="solid"