Skip to content

[popups] Allow Positioner parts to be omitted for native CSS anchoring #1663

@atomiks

Description

@atomiks

When trying to use native CSS anchor positioning by simply omitting the Positioner part to position Popup with CSS anchor, an error is thrown:

Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.

Native CSS Anchoring doesn't support Arrow yet, but it can optionally consume the context instead of throwing for future use. Popup doesn't need to consume the positioner context at all (FloatingFocusManager can work with FloatingRootContext from the root instead).

This way, the Floating UI logic doesn't need to be included in the bundle once CSS anchoring is widespread if they just omit the Positioner part in their JSX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis is not a bug, nor a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions