Skip to content

Commit f5cfc22

Browse files
Merge pull request #1312 from holyavocad0/patch-1
FIX Update EditableFormHeading.php to output unique ID attributes to comply with accessibility standards
2 parents 659e181 + c822f24 commit f5cfc22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/Model/EditableFormField/EditableFormHeading.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getCMSFields()
7070

7171
public function getFormField()
7272
{
73-
$labelField = HeaderField::create('userforms-header', $this->Title ?: false)
73+
$labelField = HeaderField::create('userforms-header-' . $this->ID, $this->Title ?: false)
7474
->setHeadingLevel($this->Level);
7575
$labelField->addExtraClass('FormHeading');
7676
$labelField->setAttribute('data-id', $this->Name);

0 commit comments

Comments
 (0)