-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Q | A |
---|---|
New Feature | yes |
RFC | no |
BC Break | no |
Hi, so far the <fieldset>
wrapper for multi-checkbox, radio and so on can't have attributes since the rendered html is hard-coded:
laminas-form/src/View/Helper/FormRow.php
Lines 193 to 202 in c3ad4db
if ($type === 'multi_checkbox' | |
|| $type === 'radio' | |
|| $element instanceof MonthSelect | |
|| $element instanceof Captcha | |
) { | |
$markup = sprintf( | |
'<fieldset><legend>%s</legend>%s</fieldset>', | |
$label, | |
$elementString | |
); |
For the multi-checkbox, an hypothetical $multiCheckbox->setAttribute('fieldset_class' => 'foo');
could be retrieved and injected: we should think of a comprehensive solution for all the involved elements though.