Toasts should not autohide when hovered or when focus is inside
For accessibility and usability reasons, if an autohiding toast is hovered with the mouse, or when :focus-within
, it should prevent the autohiding / reset the delay (so when not hovered anymore / when focus moves out again, the delay kicks in again and eventually the toast does hide).
Due to :focus-within
, probably can only target v5 - unless extra work is done in JS to check document.activeElement
and to verify if it's a child element of the toast.