Looking for some assistance with customizing the appearance of group labels in the Autocomplete component from React Material-UI on my website. I've successfully changed the List-Elements to have a dark background, as shown in this image: https://i.sstatic.net/OTHaC.png
The issue is that I can't seem to figure out how to style the group labels within the list. Due to the use of class components in my project, solutions involving React Hooks are not an option. It seems like overriding the CSS of the component might be the way to go, but I'm struggling to make it work.
I attempted to customize the styling using the createMuiTheme() function and by targeting the MuiListSubheader class, but unfortunately, this approach didn't yield any results.
While I was able to modify the list items using the PaperComponent prop of the Autocomplete component, I haven't found a similar solution for the list subheaders.
Any help would be greatly appreciated. Thank you!