Skip to content

@leafygreen-ui/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Dec 21:44
· 12 commits to main since this release
20539a4

Major Changes

  • 04bb887: LG-4121: Replaces usePortal prop with renderMode prop. renderMode="inline" and renderMode="portal" are deprecated, and all popover elements should migrate to using the top layer. The old default was usePortal=true, and the new default is renderMode="top-layer".

    See @leafygreen-ui/popover package 12.0.0 changelog for more info.

    Migration guide

    Use popover-v12 codemod for migration assistance.

    Old
    <Select popoverZIndex={9999} usePortal={false} />
    <Select portalClassName="portal-class" usePortal />
    New
    <Select popoverZIndex={9999} renderMode="inline" />
    <Select portalClassName="portal-class" renderMode="portal" />

Patch Changes