[TASK] Use “error” icon for validation failures in FormEngine 60/51460/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sun, 29 Jan 2017 20:38:16 +0000 (21:38 +0100)
committerBenni Mack <benni@typo3.org>
Mon, 30 Jan 2017 12:36:40 +0000 (13:36 +0100)
Currently, a warning sign is rendered next to field labels whose
validation failed. Failed validations are errors and thus another icon
should be rendered. With this patch, a red circle containing an
exclamation mark is rendered. It’s the same icon as in the tabs holding
affected fields.

Resolves: #79537
Releases: master
Change-Id: I01b783c36dfac551bf6e9f0cb8fc703290c3eb72
Reviewed-on: https://review.typo3.org/51460
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Build/Resources/Public/Less/TYPO3/_main_form.less
typo3/sysext/backend/Resources/Public/Css/backend.css

index 19aee9e..3e3c37c 100644 (file)
@@ -126,9 +126,8 @@ fieldset[disabled] .form-control {
        label:before {
                font-family: FontAwesome;
                font-size: 12px;
-               margin-right: 5px;
                text-align: center;
-               content: @fa-var-warning;
+               content: @fa-var-exclamation-circle;
                color: @brand-danger;
                display: inline-block;
        }
index eb6a321..b42a4a1 100644 (file)
@@ -12672,9 +12672,8 @@ fieldset[disabled] .form-control {
 .form-group.has-error label:before {
   font-family: FontAwesome;
   font-size: 12px;
-  margin-right: 5px;
   text-align: center;
-  content: "\f071";
+  content: "\f06a";
   color: #c83c3c;
   display: inline-block;
 }