Skip to content

Commit df9817b

Browse files
committed
Merge branch 'improvement/table-select-misalignment' into q/1.0
2 parents 86ea34a + bb093fe commit df9817b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib/components/tablev2/Tablestyle.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { HeaderGroup } from 'react-table';
88
import { Icon } from '../icon/Icon.component';
99
import { FocusVisibleStyle } from '../buttonv2/Buttonv2.component';
1010
import { spacing } from '../../spacing';
11-
import { Box } from '../box/Box';
1211

1312
const borderSize = '4px';
1413
export const SortIncentive = styled.span`
@@ -65,7 +64,6 @@ export const HeadRow = styled.div<HeadRowType>`
6564
overflow: hidden;
6665
border-bottom: 1px solid
6766
${(props) => props.theme[props.separationLineVariant]};
68-
padding-right: ${borderSize};
6967
padding-left: ${spacing.r16};
7068
`;
7169

@@ -105,7 +103,7 @@ export const TableRow = styled.div<TableRowType>`
105103
if (props.selectedId && props.isSelected) {
106104
return css`
107105
background-color: ${props.theme.highlight};
108-
border-right: ${borderSize} solid ${props.theme.selectedActive};
106+
box-shadow: inset -${borderSize} 0 0 ${props.theme.selectedActive};
109107
`;
110108
}
111109
}}
@@ -124,7 +122,7 @@ export const TableRowMultiSelectable = styled.div<TableRowMultiSelectableType>`
124122
if (props.isSelected) {
125123
return css`
126124
background-color: ${(props) => props.theme.highlight};
127-
border-right: ${borderSize} solid ${props.theme.selectedActive};
125+
box-shadow: inset -${borderSize} 0 0 ${props.theme.selectedActive};
128126
`;
129127
}
130128
}}

0 commit comments

Comments
 (0)