Customize Filter Styles in DataGrid MUI
If you want to customize the styles for filter panels in DataGrid from Material UI (MUI), you need to know, where it is. And only so. To update these styles you can only with the object properties.
The example of the solution is here. You need to use slotProps / filterPanel / ....
<DataGrid
ref={gridRef}
....
sx={{
padding: 0, margin: 0, fontSize: 13,
"& .MuiDataGrid-columnHeaderTitle": {
whiteSpace: "normal",
lineHeight: "normal", fontSize: 12
},
}}
....
slotProps={{
filterPanel: {
sx: {
"& .MuiDataGrid-filterFormColumnInput": {
p: '0px 10px',
m: '0px 10px',
width: '260px'
},
'& .MuiDataGrid-filterFormOperatorInput': {
width: '160px'
}
}
}
}}
....
/>

Login as another user in SharePoint 2019 on-premises site in Chrome
Set limited Wi-Fi connection within command line in Windows
A sticker problem with the fan in HP laptop