From b592078888643facb4520a026aa84b579d21e238 Mon Sep 17 00:00:00 2001
From: Frank Naegler <frank.naegler@typo3.org>
Date: Fri, 13 May 2016 10:24:55 +0200
Subject: [PATCH] [BUGFIX] Fix broken disable overlay in FormEngine

Resolves: #75397
Releases: master, 7.6
Change-Id: I7cb4f04e38e3d9f755aaf92012eb56d71a1ad6f7
Reviewed-on: https://review.typo3.org/48110
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
---
 .../Public/Less/TYPO3/_element_tceforms.less  | 37 +++++++------------
 .../backend/Resources/Public/Css/backend.css  | 18 +++------
 2 files changed, 20 insertions(+), 35 deletions(-)

diff --git a/Build/Resources/Public/Less/TYPO3/_element_tceforms.less b/Build/Resources/Public/Less/TYPO3/_element_tceforms.less
index 6fbd7cda75fc..7d29f7b11d87 100644
--- a/Build/Resources/Public/Less/TYPO3/_element_tceforms.less
+++ b/Build/Resources/Public/Less/TYPO3/_element_tceforms.less
@@ -220,36 +220,27 @@ div.t3-form-field-container:first-child .t3-form-field-label-flex {
     top: 4px;
 }
 
-.t3-form-field-item {
-	position: relative;
-	border: 1px solid transparent;
-	padding: 0;
-}
-
 .t3-tceforms-widget-null-wrapper + .t3-form-field-item {
 	display: inline-block;
 }
 
-.t3-form-field-item.disabled {
-	border: 1px dotted #696362;
-}
-
-.t3-form-field-disable,
-.t3-form-field-item.disabled .t3-form-field-item.disabled .t3-form-field-disable {
+.t3-form-field-disable {
 	display: none;
 }
-.t3-form-field-item.disabled .t3-form-field-disable {
-	z-index: 8000;
-	background: #f4f4f4;
-	display: block;
-	position: absolute;
-	width: 100%;
-	height: 100%;
-
-	opacity: 0.5;
-	filter: alpha(opacity=50);
+.t3js-formengine-field-item.disabled {
+	position: relative;
+	.t3-form-field-disable {
+		z-index: 8000;
+		background: #fafafa;
+		display: block;
+		position: absolute;
+		width: 100%;
+		height: 100%;
+
+		opacity: 0.5;
+		filter: alpha(opacity=50);
+	}
 }
-
 .t3-form-palette-field-label {
 	text-indent: 2px;
 }
diff --git a/typo3/sysext/backend/Resources/Public/Css/backend.css b/typo3/sysext/backend/Resources/Public/Css/backend.css
index 75160de8c28b..080af8ef315a 100644
--- a/typo3/sysext/backend/Resources/Public/Css/backend.css
+++ b/typo3/sysext/backend/Resources/Public/Css/backend.css
@@ -10615,24 +10615,18 @@ div.t3-form-field-container:first-child .t3-form-field-label-flex {
   right: 3px;
   top: 4px;
 }
-.t3-form-field-item {
-  position: relative;
-  border: 1px solid transparent;
-  padding: 0;
-}
 .t3-tceforms-widget-null-wrapper + .t3-form-field-item {
   display: inline-block;
 }
-.t3-form-field-item.disabled {
-  border: 1px dotted #696362;
-}
-.t3-form-field-disable,
-.t3-form-field-item.disabled .t3-form-field-item.disabled .t3-form-field-disable {
+.t3-form-field-disable {
   display: none;
 }
-.t3-form-field-item.disabled .t3-form-field-disable {
+.t3js-formengine-field-item.disabled {
+  position: relative;
+}
+.t3js-formengine-field-item.disabled .t3-form-field-disable {
   z-index: 8000;
-  background: #f4f4f4;
+  background: #fafafa;
   display: block;
   position: absolute;
   width: 100%;
-- 
GitLab