From b514d9b23d1718e460bd1ba3501310b70a2bf7ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 29 Sep 2020 15:32:11 +0200 Subject: [PATCH] Finalize forms migration to tailwindcss --- .../Resources/Private/Assets/scss/main.scss | 6 +++ .../Private/Partials/Form/Field/Field.html | 8 ++++ .../Private/Templates/Form/FullForm.html | 44 +++++++++---------- .../Private/Templates/Form/SimpleForm.html | 12 ++--- 4 files changed, 42 insertions(+), 28 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss index 793ea328..3a529638 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss @@ -69,6 +69,12 @@ @import "employee"; } +@layer components { + .has-validation-error .form-input { + @apply text-red-500 border-red-500; + } +} + @layer utilities { .-translate-xy-1\/2 { transform: translate(-50%, -50%); diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html index a2f03840..76038c0d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Field/Field.html @@ -5,6 +5,14 @@ {formvh:translateElementProperty(element: element, property: 'label')} {elementContent -> f:format.raw()} + + + diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html index e558ec25..f4f95bac 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Form/FullForm.html @@ -12,55 +12,55 @@ pageUid="{settings.defaultAjaxUid}" additionalAttributes="{'v-show': '!success', '@submit.prevent': 'submitForm()'}"> -