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:
parent
b576f8f8e5
commit
0a5100c4a3
1 changed files with 2 additions and 4 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue