primitives icon indicating copy to clipboard operation
primitives copied to clipboard

Move components to popover API

Open Bricklou opened this issue 8 months ago • 1 comments

Feature request

Overview

The Popover API is now widely supported. Components like dropdown, tooltip, context menu and others should migrate to it.

Why? Because it would allow use to take advantage of the #top-layer context without having to bother about having a z-index issue on our components. Plus, popover can compute screen border by themselves, which means there would be less JS computation to fix offscreen problems.

Who does this impact? Who is this for?

This would concern everything radix user, and obviously, might be a breaking change to many of them. But on the other hand, it would use supported browser features instead of custom JS behaviour to compute the rendering.

Bricklou avatar Jun 06 '24 21:06 Bricklou