Skip to content

Commit

Permalink
FormRow // add element name to form-row class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Jun 19, 2023
1 parent 4b45c62 commit 2e5c3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/FormRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 2e5c3d3

Please sign in to comment.