Skip to content

Commit

Permalink
PR: Read-only question should be inactive in general (#8230)
Browse files Browse the repository at this point in the history
* work for the #8212

* work for the #8212
  • Loading branch information
dmitry-kurmanov authored May 3, 2024
1 parent a8402d0 commit 0f041a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/defaultV2-theme/blocks/sd-imagepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/defaultV2-theme/blocks/sd-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f041a5

Please sign in to comment.