Skip to content

Commit 394c4c0

Browse files
committed
.form-label
1 parent 54d9afe commit 394c4c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/TypiCMS/BootForms/Elements/FormGroup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class FormGroup extends Element
1818
public function __construct(Label $label, Element $control)
1919
{
2020
$this->label = $label;
21+
$this->label->addClass('form-label');
2122
$this->control = $control;
2223
$this->addClass('mb-3');
2324
}

src/TypiCMS/BootForms/Elements/GroupWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function hideLabel()
7171
public function required($conditional = true)
7272
{
7373
if ($conditional) {
74-
$this->formGroup->label()->addClass('control-label-required');
74+
$this->formGroup->label()->addClass('form-label-required');
7575
}
7676

7777
call_user_func_array([$this->target, 'required'], [$conditional]);

0 commit comments

Comments
 (0)