Render fixed overlays through a portal to escape transformed ancestors
@alandev03▲ 0 net votes
A position: fixed element inside an ancestor with transform, filter or backdrop-filter is positioned relative to that ancestor, not the viewport. Docks, toasts and menus inside animated or blurred containers end up misplaced. In React, render them with createPortal(node, document.body).