On that note - does anyone know if there is a way to style a button with a popoevertarget attribute only when it is "active" eg the targeted popover is open? Purely with css? Like :target for links or something similar?
Currently the only way I can think of doing this is with :has(), but I need to know beforehand the specific (class/id | selector) for the button and the popover.