Table: Update background in nested table (#96754)

This commit is contained in:
Adela Almasan 2024-11-21 09:32:50 -06:00 committed by GitHub
parent 3ceaa42d20
commit d152770b6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,8 @@ export function ExpandedRow({ tableStyles, nestedData, rowIndex, width, cellHeig
paddingLeft: EXPANDER_WIDTH,
position: 'absolute',
top,
backgroundColor: theme.colors.background.primary,
color: theme.colors.text.primary,
};
top += height + theme.spacing.gridSize;

View File

@ -286,6 +286,7 @@ export const RowsList = (props: RowsListProps) => {
const { bgColor, textColor } = rowBg(row.index);
style.background = bgColor;
style.color = textColor;
style.borderLeft = `2px solid ${bgColor}`;
}
// If there's a text wrapping field we set the height of it here