I wouldn’t be surprised if it’s just another unsupported UI feature in UXP If I remember, I’ll try to play around after work with it. Had to implement a bunch of CSS workarounds on my own plugin
I tried to play around and it seems that :disabled selector is just not supported. Same for sp-action-button
Also even on a not disabled button when you add pointer-events: none, it works on a button itself (click is not triggered), but icon still receives the event and triggers a click (same happens on a stock disabledsp-button - click is triggered if clicked on icon)
I’ll just ping @kerrishotts here. Sometimes these restrictions just doesn’t make sense
I have a feature request for my plugin which also requires dealing with disabled buttons, but it appears I’ll have to inform user, that it’s blocked by Adobe
I am having a similar problem with click events on buttons with svg icons. Clicking the exterior of the button fires the button – but clicking on the interior of the svg icon and the button does not fire.
On which element exactly? If I’m not mistaken, currentTartget is the icon if you click on the icon and it’s not actually disabled even if the button is, isn’t it?