From 2e5c3d353e1ea03c31de9d13c6476970611d0b14 Mon Sep 17 00:00:00 2001 From: Christian Leucht Date: Mon, 19 Jun 2023 11:43:28 +0200 Subject: [PATCH] FormRow // add element name to form-row class. --- src/View/FormRow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/FormRow.php b/src/View/FormRow.php index a7d271f..d48bc49 100644 --- a/src/View/FormRow.php +++ b/src/View/FormRow.php @@ -74,7 +74,7 @@ public function render(ElementInterface $element): string $errors ); - $classes = ['form-row', 'form-row--' . $element->type()]; + $classes = ['form-row', 'form-row__' . $element->name(), 'form-row--' . $element->type()]; if ($errors !== '') { $classes[] = 'form-row--has-errors'; }