Inversion of Control(?)
with styled-components
with styled-components
const MyTable = styled.table`
tbody > .MuiIconButton-root:hover {
color: BlanchedAlmond;
}
`
const Root = styled.table``
const Row = styled.tr``
export default { Root, Row }
import MyTable from './MyTable';
<MyTable.Root>
<MyTable.Head />
<MyTable.Body>
<MyTable.Row />
</MyTable.Body>
</MyTable.Root>
import MyTable from './MyTable';
const ActionButton = styled(IconButton)`
${MyTable.Body} &:hover {
color: BlanchedAlmond;
}
`
Not sure what the dealio is with Pigment CSS