I have the following react select component working correctly except I'd like different background colors and fonts for the select options.
Select Code
<TextField fullWidth select size="small" name="trigger" value={thisTrigger} onChange={(selectedOption) => { doSetTrigger(selectedOption); }} InputProps={{disableUnderline: true}} > {triggers.map((trigger, index) => ( <MenuItem key={index} value={index} > {trigger.ENDPOINT} </MenuItem> ))} </TextField> and I've tried every which way I can think of to style it - this was my latest attempt
root: { 'background': 'linear-gradient(#F0F0FA, #F0F0FA)', 'height': '100vh', 'width': '100%', 'position': 'relative', '& .MuiList-padding': { 'borderRadius': '10px', 'background': 'white', 'color': '#001C32', 'fontWeight': 400, 'fontFamily': '"Manrope", "Roboto", "Arial", "sans-serif"', 'lineHeight': '1.5', 'fontSize': '1em', }, }, Which surprised me when it didn't work, because I can add a background color to .MuiList-padding in the browser dev tools, and it works!
I must be missing something; any suggestions are welcome!
