From 0f041a5d7d8783d05123db91384b90e56d5405d5 Mon Sep 17 00:00:00 2001 From: Dmitry Kurmanov Date: Fri, 3 May 2024 18:43:37 +0400 Subject: [PATCH] PR: Read-only question should be inactive in general (#8230) * work for the https://github.com/surveyjs/survey-library/issues/8212 * work for the https://github.com/surveyjs/survey-library/issues/8212 --- src/defaultV2-theme/blocks/sd-imagepicker.scss | 6 ++++-- src/defaultV2-theme/blocks/sd-item.scss | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/defaultV2-theme/blocks/sd-imagepicker.scss b/src/defaultV2-theme/blocks/sd-imagepicker.scss index 3b01264d65..ccd2e7d7d2 100644 --- a/src/defaultV2-theme/blocks/sd-imagepicker.scss +++ b/src/defaultV2-theme/blocks/sd-imagepicker.scss @@ -88,8 +88,10 @@ } .sd-imagepicker__item:focus-within .sd-imagepicker__image, -.sd-imagepicker__item--allowhover .sd-imagepicker__image:hover { - opacity: 0.5; +.sd-imagepicker__item--allowhover:not(.sd-imagepicker__item--readonly, .sd-imagepicker__item--preview) { + .sd-imagepicker__image:hover { + opacity: 0.5; + } } .sd-imagepicker__image { diff --git a/src/defaultV2-theme/blocks/sd-item.scss b/src/defaultV2-theme/blocks/sd-item.scss index 1a100fbf21..a41560bcbe 100644 --- a/src/defaultV2-theme/blocks/sd-item.scss +++ b/src/defaultV2-theme/blocks/sd-item.scss @@ -41,7 +41,7 @@ box-shadow: $shadow-inner-reset, 0 0 0 2px $primary; } -.sd-item--allowhover .sd-selectbase__label:hover .sd-item__decorator { +.sd-item--allowhover:not(.sd-item--readonly) .sd-selectbase__label:hover .sd-item__decorator { background: $background-dim-dark; outline: none; }