Skip to content

Commit

Permalink
πŸ’„ fix asterisk on seperate line with
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Apr 2, 2024
1 parent 2dc1899 commit 4a35932
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions frontend/styles/components/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
}

.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
text-wrap: nowrap; // to prevent the asterisk from wrapping to the next line

&::after {
content: '*';
color: var(--#{$prefix}danger);
}
}

.no-required-asterisk {
.field-required {
&:after {
content: "";
&::after {
content: '';
}
}
}

0 comments on commit 4a35932

Please sign in to comment.