I am currently working with MUI and I have a need to modify certain properties that are prefixed with random IDs. How can I target, for instance, the first one using:
'& endsWith(MuiAccordionDetails-root)'
I wish to achieve this because these random IDs are frequently changing
const Styles = {
accordion:{
p:0,
'& .css-15v22id-MuiAccordionDetails-root':{
p:0,
},
'& .css-10gwilr-MuiButtonBase-root-MuiAccordionSummary-root':{
px: '10px',
},
'& .MuiCollapse-root':{
mx:'20px'
}
},
}