On anchored interfaces

🫧 Open on Bubbles Floating UI is one of those problems that looks small until you build it properly. You click a button. A menu appears below it. That sounds like the whole component. Then the page scrolls. The trigger moves. The menu clips against the viewport. A parent has overflow: hidden . A modal has a higher z-index . Escape should close it. Clicking outside should close it. Focus should move somewhere sensible. Focus should come back when it closes. The menu should not render halfway off-screen just

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论