Skip to content

@chakra-ui/modal@1.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Jan 21:53
· 3459 commits to main since this release

Minor Changes

  • 14be4be2c
    #3210 Thanks
    @segunadebayo! - Add support for forwarding
    props to the underlying Portal component. Pass the portalProps prop to
    achive this.

    The 2 props you can pass to the portalProps are:

    • containerRef: ref for the element where to mount the portal
    • appendToParentPortal: If false, it'll opt out of portal nesting
    <Modal portalProps={{ containerRef: ref }}>
      <ModalOverlay />
      <ModalContent>
        <Box>Modal content</Box>
        <Tooltip portalProps={{ appendToParentPortal: false }}>
          Some tooltip
        </Tooltip>
      </ModalContent>
    </Modal>
  • 90c7a4fbf
    #3092 Thanks
    @TimKolberger! - - Improved theme typing in
    order to provide a better autocomplete experience

    • Fixed a type issue where pseudo style props like _hover and _active
      didn't allow regular css properties

Patch Changes

  • Updated dependencies
    [90c7a4fbf,
    b572bceed,
    e41e6b81b]:
    • @chakra-ui/close-button@1.1.0
    • @chakra-ui/hooks@1.1.3
    • @chakra-ui/portal@1.1.0
    • @chakra-ui/transition@1.0.7