I am using Material UI table with stickyHeader prop as i want my table header to be fixed. But then other css is not applying on the header part.
const useStyles = makeStyles((theme) => ({
tableHead: {
borderBottomStyle: "solid",
borderBottomColor: "blue",
},
}))
const CustomTable = () => {
return(
<TableContainer component={Paper} className={classes.tableContainer}>
<Table stickyHeader aria-label="simple table">
<TableHead classes={{ root: classes.tableHead }}>
<TableRow>
<TableCell>Hii</TableCell>
</TableRow>
</TableHead>
</Table>
</TableContainer>
)
}
When I am removing "stickyHeader" props. I am getting blue border at the bottom of header but not in case of stickyHeader.