Skip to content

Commit

Permalink
Fix visibility of crop mask with empty crop (#576)
Browse files Browse the repository at this point in the history
Updates styling so that the crop mask (`.ReactCrop__crop-mask`) is
hidden, like the crop selection is, with an empty crop object (when the
`ReactCrop--invisible-crop` CSS class is active).
  • Loading branch information
henrywoody authored Jan 15, 2024
1 parent eba60e0 commit 4bfa6b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ReactCrop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ $mobile-media-query: '(pointer: coarse)' !default;
outline-offset: -1px;
}
}
&--invisible-crop &__crop-mask,
&--invisible-crop &__crop-selection {
display: none;
}
Expand Down

0 comments on commit 4bfa6b2

Please sign in to comment.