Skip to content

Commit

Permalink
hotfix: better mimic form badge space on CMS
Browse files Browse the repository at this point in the history
Space was similar and acceptable before.

This makes space actually match between c-form and django cms forms.
  • Loading branch information
wesleyboar committed Nov 27, 2023
1 parent 6ccf1f6 commit a06f5af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/_imports/components/django-cms-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
:--cms-form__field > :--cms-form__errors { order: 1; }
:--cms-form__field > :--cms-form__help { order: 2; }

/* To increase asterisk character space */
/* FAQ: Django form plugin markup neglects space between label and badge */
/* HACK: To mimic Core-Styles space between label and badge */
/* FAQ: Core-Styles assumes space between label and badge,
but Django form plugin markup does not add that space */
:--cms-form__badge {
font-size: 1em;
font-size: inherit; /* to let Core-Styles `em` margin use regular font size */
width: 0; /* to remove space from asterisk character */
}

0 comments on commit a06f5af

Please sign in to comment.