From f8bb29ef6596028aa3878e5031fe9eb0d0d082eb Mon Sep 17 00:00:00 2001 From: Henry Woody Date: Thu, 11 Jan 2024 16:44:05 -0800 Subject: [PATCH] Fix visibility of crop mask with empty crop 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). --- src/ReactCrop.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ReactCrop.scss b/src/ReactCrop.scss index d43a380..83fd493 100644 --- a/src/ReactCrop.scss +++ b/src/ReactCrop.scss @@ -126,6 +126,7 @@ $mobile-media-query: '(pointer: coarse)' !default; outline-offset: -1px; } } + &--invisible-crop &__crop-mask, &--invisible-crop &__crop-selection { display: none; }