Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/scss/bootstrap/components/_form-check.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$component-name: form-check-label;

.#{$component-name} {
&.required {
&::before {
color: var(--bs-danger);
content: "*" / " ";
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the modification 🙏
Don't forget to add a blank line at the end of the _form-check.scss file.
Then it's good for me 👍

1 change: 1 addition & 0 deletions src/scss/bootstrap/components/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import "buttons";
@import "carousel";
@import "dropdown";
@import "form-check";
@import "hr";
@import "labels";
@import "modal";
Expand Down
2 changes: 1 addition & 1 deletion templates/_partials/form-fields.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
value="1" {if $field.value}checked="checked"{/if}
{if $field.required}required{/if}
>
<label class="form-check-label" for="field-{$field.name}">
<label class="form-check-label{if $field.required} required{/if}" for="field-{$field.name}">
{$field.label nofilter}
</label>
</div>
Expand Down