For a collapsible optgroup implementation (really basic one here: https://codepen.io/elsewhere_/pen/wVrxvG), I want to have the selection cursor actually highlight the optgroups to better show which group the mouse is over currently and show they can be clicked more clearly. The behavior when clicking the optgroups doesn’t have to change whatsoever (I don’t want them to actually be selectable, in other words, I know the current implementation doesn’t allow that anyway).
Is there a style setting that can accomplish this? My gut reaction is no, as I see that the last non-optgroup element that was moused over stays highlighted so I would also need to find a way to re-style that to not be highlighted when specifically mousing over optgroups. However, if there is some variable or event I could take advantage of to re-style everything properly then it may just be doable. I’m open to suggestions!