| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- PFBC View class, HTML output is controlled | |
| 3 | 2 | class AccuaForm_View_SideBySide extends AccuaForm_View_Standard { |
| 4 | 3 | protected $labelWidth; |
| 5 | 4 | protected $labelRightAlign; |
| 6 | 5 | protected $labelPaddingRight = 5; |
| @@ -5,9 +4,9 @@ | ||
| 5 | 4 | protected $labelRightAlign; |
| 6 | 5 | protected $labelPaddingRight = 5; |
| 7 | 6 | protected $labelPaddingTop; |
| 8 | 7 | |
| 9 | - public function __construct($labelWidth, ?array $properties = null) { | |
| 8 | + public function __construct($labelWidth, array $properties = null) { | |
| 10 | 9 | if(!empty($properties)) |
| 11 | 10 | $properties["labelWidth"] = $labelWidth; |
| 12 | 11 | else |
| 13 | 12 | $properties = array("labelWidth" => $labelWidth); |
| @@ -72,9 +71,9 @@ | ||
| 72 | 71 | echo '<div class="pfbc-label">'; |
| 73 | 72 | if(!empty($label)) { |
| 74 | 73 | echo '<label for="', $id, '">', $label; |
| 75 | 74 | if($element->isRequired()) |
| 76 | - echo ' <span class="pfbc-required" aria-label="required">*</span>'; | |
| 75 | + echo ' <strong>*</strong>'; | |
| 77 | 76 | echo '</label>'; |
| 78 | 77 | } |
| 79 | 78 | if(!empty($description)) |
| 80 | 79 | echo '<em>', $description, '</em>'; |