Skip to content

FormRow: allow attributes for <fieldset> wrapper #62

@Slamdunk

Description

@Slamdunk
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:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions