-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
addition/proposalNew features or enhancementsNew features or enhancementstopic: popoverThe popover attribute and friendsThe popover attribute and friends
Description
As far as I can tell from reading the spec, a popover doesn't know which element invoked it (a "trigger element").
Is this something that should be added?
I suppose this could be useful if the CSS Anchor positioning hasn't shipped yet, but popovers have. You could then use @floating-ui/dom
for anchoring the popover. But that all depends on the popover knowing what triggered it.
Another example would be to style the trigger element when the popover is open.
One solution would be to specify the trigger when calling showPopover
/togglePopover
?
element.showPopover(this);
or element.showPopover({ trigger: this });
kleinfreund, Tom-Bonnike, marco-prontera, TheOneTheOnlyJJ and Nicolai8
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementstopic: popoverThe popover attribute and friendsThe popover attribute and friends