From a06f5afb12b027dd71470d5ab50c198c9b403697 Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Mon, 27 Nov 2023 10:49:15 -0600 Subject: [PATCH] hotfix: better mimic form badge space on CMS Space was similar and acceptable before. This makes space actually match between c-form and django cms forms. --- src/lib/_imports/components/django-cms-forms.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/_imports/components/django-cms-forms.css b/src/lib/_imports/components/django-cms-forms.css index fe3ae1c27..fe2b9f3a6 100644 --- a/src/lib/_imports/components/django-cms-forms.css +++ b/src/lib/_imports/components/django-cms-forms.css @@ -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 */ }