Currently experiencing a problem with css box-shadow while working with material ui and react base table in our project.
The challenge lies in replacing the react virtualized table with react base table, specifically regarding the styling of the header row.
Initially, I had the following box-shadow styling that worked well with the ReactVirtualized__Table:
.ReactVirtualized__Table {
.ReactVirtualized__Table__headerRow {
background-color: #ffffff;
box-shadow: 0 3px 3px -2px rgba(36, 36, 36, 0.12), 0 3px 4px 0 rgba(36, 36, 36, 0.14),
0 1px 8px 0 rgba(36, 36, 36, 0.2);
}
}
However, upon implementing react base table with JSS styling, I tried adding the shadow in the following way:
root: {
'& .BaseTable__header': {
boxShadow:
'0 3px 3px -2px rgba(36, 36, 36, 0.12), 0 3px 4px 0 rgba(36, 36, 36, 0.14), 0 1px 8px 0 rgba(36, 36, 36, 0.2)',
fontWeight: 'normal',
position: 'relative',
},
}
Additionally, I attempted a different approach with the box-shadow property:
boxShadow: [
[0, 3, 3, -2, 'rgba(36, 36, 36, 0.12)'],
[0, 3, 4, 0, 'rgba(36, 36, 36, 0.14)'],
[0, 1, 8, 0, 'rgba(36, 36, 36, 0.2)'],
],
Despite these efforts, the shadow only appears below the header row and not above it. The cause of this issue remains elusive to me.