npm react-medium-image-zoom 5.1.0
v5.1.0

latest releases: 5.2.4, 5.2.3, 5.2.2...
2 years ago

[5.1.0] - 2022-10-11

Added

  • Ability to customize the zoom modal content via <ZoomContent> (issue #332)
  • Re-added wrapElement prop to API; only supports 'div' | 'span' (issue #356)
  • Added a11y support for prefers-reduced-motion: reduce (issue #359)
  • Added classDialog string prop to account for the loss of granular styling
    control over different modals resulting from moving the <dialog> rendering
    to a portal

Changed

  • Now rendering <dialog> in a portal because of #356
    • For the folx using .my-class [data-rmiz-modal] {} to change the <dialog>
      styles, please use the classDialog prop to pass my-class to the
      <dialog>. I wish I didn't have to do this, but this is something that
      needs fixing, and I can't justify a new major version just because of this
      new style requirement. The classDialog addition (mentioned above) should
      solve this nicely.

Fixed

  • Now using the wheel event instead of scroll to detect trying to leave the
    modal (issue #350)
  • Fixed mobile scrolling experience (related to issue #350)

Removed

  • Removed the broken scrollableEl that has arguably not ever worked (issue #350)

Don't miss a new react-medium-image-zoom release

NewReleases is sending notifications on new releases.