From a2ddef015146ab196e8903878f3b0c2b0805d076 Mon Sep 17 00:00:00 2001 From: alansemenov Date: Thu, 4 Apr 2024 09:54:31 +0200 Subject: [PATCH] Non-selectable options in dropdowns should not be interactable #3521 --- .../api/ui/selector/combobox/combobox.less | 46 +++++++++++-------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/src/main/resources/assets/admin/common/styles/api/ui/selector/combobox/combobox.less b/src/main/resources/assets/admin/common/styles/api/ui/selector/combobox/combobox.less index d8bd2e723..542471cca 100644 --- a/src/main/resources/assets/admin/common/styles/api/ui/selector/combobox/combobox.less +++ b/src/main/resources/assets/admin/common/styles/api/ui/selector/combobox/combobox.less @@ -71,27 +71,37 @@ &.selected { color: #d3d3d3; } - } - - .slick-row .slick-cell-checkboxsel { - overflow: visible; - - label { - display: block; - width: 100%; - height: 100%; - min-width: 16px; - min-height: 16px; - margin: 0; - background: url("../../../../../images/box-unchecked.gif") center no-repeat; - } - input[type="checkbox"] { - display: none; + .slick-cell { + &.readonly { + pointer-events: none; + } } - &.selected label { - background: url("../../../../../images/box-checked.gif") center no-repeat; + .slick-cell-checkboxsel { + overflow: visible; + + label { + display: block; + width: 100%; + height: 100%; + min-width: 16px; + min-height: 16px; + margin: 0; + background: url("../../../../../images/box-unchecked.gif") center no-repeat; + } + + input[type="checkbox"] { + display: none; + } + + &.selected label { + background: url("../../../../../images/box-checked.gif") center no-repeat; + } + + &.readonly label { + opacity: 0.5; + } } } }