Skip to content

Commit 9286139

Browse files
authored
fix(tables): cross-browser border styling for headers (#2036)
1 parent e37df1b commit 9286139

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/tables/src/styled/StyledHead.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import styled, { css, DefaultTheme, ThemeProps } from 'styled-components';
99
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
1010
import { StyledHeaderRow } from './StyledHeaderRow';
11+
import { StyledHeaderCell } from './StyledHeaderCell';
1112

1213
const COMPONENT_ID = 'tables.head';
1314

@@ -23,11 +24,14 @@ const colorStyles = ({ theme }: ThemeProps<DefaultTheme>) => {
2324
const backgroundColor = getColor({ variable: 'background.default', theme });
2425

2526
return css`
26-
box-shadow: inset 0 -${theme.borderWidths.sm} 0 ${borderColor}; /* [1] */
2727
background-color: ${backgroundColor};
2828
2929
& > ${StyledHeaderRow}:last-child {
3030
border-bottom-color: transparent; /* [1] */
31+
32+
& > ${StyledHeaderCell} {
33+
box-shadow: inset 0 -${theme.borderWidths.sm} 0 ${borderColor}; /* [1] */
34+
}
3135
}
3236
`;
3337
};

0 commit comments

Comments
 (0)