V12: Property editors should only contain layout when in preview mode (#14796)

* Revert "Make sure the property editor layout is contained within its container (prevent Z-index bleed-through) (#13583)"

This reverts commit 8463d906a7.

* remove seemingly unused attribute readonly

* contain everything with contain:layout

this is set if the property editor is in preview mode to make sure all overlays work

* Revert "remove seemingly unused attribute readonly"

This reverts commit 7a2743e8f664e707e8df5022fe754dfd77c508ea.
This commit is contained in:
Jacob Overgaard
2023-09-14 13:17:35 +02:00
parent c8e054baa2
commit 0a4cc27a5d
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
.umb-property-editor {
position: relative;
contain: style;
&.is-preview {
contain: layout;
}
}
.umb-property-editor--preview {

View File

@@ -1,4 +1,4 @@
<div class="umb-property-editor db">
<div class="umb-property-editor db" ng-class="{'is-preview': preview}">
<div ng-if="preview && allowUnlock" class="umb-property-editor__lock-overlay-container">
<div class="umb-property-editor__lock-overlay">
@@ -13,7 +13,7 @@
<umb-button button-style="success" type="button" action="unlock()" label-key="general_edit" size="xxs"></umb-button>
</div>
</div>
<!-- layer to prevent clicks on elements with high z-index-->
<div ng-if="preview" class="umb-property-editor__preview-overlay"></div>