pharos
pharos copied to clipboard
Use the standard `popover` API where appropriate
The problem
As much as possible, we wish to rely on web standards rather than custom behavior, such that we enjoy more consistency of expected behavior and don't fight the browser any more than we must.
The solution
Similar to the desire to use dialog
for modals (#347), for popover
s and potentially dropdown
and other components, use the popover
API where appropriate.
Additional information It's possible that Floating UI already does some with this under the hood?
Some relevant info to keep in mind around the accessibility of the popover
attribute