Skip to content

Commit

Permalink
Merge pull request #1312 from holyavocad0/patch-1
Browse files Browse the repository at this point in the history
FIX Update EditableFormHeading.php to output unique ID attributes to comply with accessibility standards
  • Loading branch information
GuySartorelli authored Aug 13, 2024
2 parents 659e181 + c822f24 commit f5cfc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Model/EditableFormField/EditableFormHeading.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getCMSFields()

public function getFormField()
{
$labelField = HeaderField::create('userforms-header', $this->Title ?: false)
$labelField = HeaderField::create('userforms-header-' . $this->ID, $this->Title ?: false)
->setHeadingLevel($this->Level);
$labelField->addExtraClass('FormHeading');
$labelField->setAttribute('data-id', $this->Name);
Expand Down

0 comments on commit f5cfc22

Please sign in to comment.