Replies: 1 comment 3 replies
-
That's why I have given classNames to just about all inner elements. You can use emotion syntax to target child elements. Just need to inspect element to see the classNames. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I have several date columns and I enabl filter range on them. I really don't like the big spacing , the large width , the font-size of the default date filter so I want to style them myself.
But I cannot manage to do that:
for example with the following code :
` const columns = useMemo<MRT_ColumnDef[] >(
() => [
{.......
...... {
accessorFn:(row)=> new Date(row.dateReception),sortingFn: 'datetime', header: 'date de réception',
Cell: ({ cell }) => cell.getValue()?.toLocaleDateString('fr-FR'),type:'date', size: 140,filterVariant:'range',
muiTableHeadCellFilterTextFieldProps: {type: 'date', sx:{width:'50px', background:'red', fontSize:'3px' },},
},
`
the font-size doesn't just apply because the element I want to target is the child of this muiTableHeadCellFilterTextFieldProps sx props.
and I cannot get the space between the 2 dates to shrink because the element I want to target is the parent of this muiTableHeadCellFilterTextFieldProps sx props.
so please give me a way to apply my own css on the elements I want
Beta Was this translation helpful? Give feedback.
All reactions