I've implemented a Material UI table with the stickyHeader prop to keep the header fixed. However, I'm facing an issue where other CSS styles are not being applied to the header section.
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>
)
}
After removing the "stickyHeader" prop, I can see the blue border at the bottom of the header. It seems like the border is not displaying when using stickyHeader.