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