Skip to content

Commit 510b4b1

Browse files
committed
company-form: adjust required-field-note styling
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent ae55dbf commit 510b4b1

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/i18n/de/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"partner-type-3": "Hörsaalpate",
124124
"partner-type-4": "Strategischer Partner",
125125
"partner-type-5": "Look IN",
126-
"required-field-note": "* kennzeichnet ein Pflichtfeld",
126+
"required-field-note-text": "kennzeichnet ein Pflichtfeld",
127127
"section-address-contact": "Adresse und Kontakt",
128128
"section-basic-data": "Basisdaten",
129129
"section-company-profile": "Firmenprofil",

src/i18n/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"partner-type-3": "Lecture hall sponsor",
124124
"partner-type-4": "Strategic partner",
125125
"partner-type-5": "Look IN",
126-
"required-field-note": "* marks a required field",
126+
"required-field-note-text": "indicates a required field",
127127
"section-address-contact": "Address and contact",
128128
"section-basic-data": "Basic data",
129129
"section-company-profile": "Company profile",

src/modules/companyForm.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ const keepCompanyFormTranslations = (t) => {
218218
t('company-form.partner-type-3');
219219
t('company-form.partner-type-4');
220220
t('company-form.partner-type-5');
221+
t('company-form.required-field-note-text');
221222
};
222223

223224
class CompanyModule extends BaseObject {
@@ -358,7 +359,10 @@ class CompanyFormElement extends BaseFormElement {
358359

359360
return html`
360361
<form class="formalize-form">
361-
<p class="required-field-note">${t('company-form.required-field-note')}</p>
362+
<p class="required-field-note">
363+
<span class="red-marked-asterisk">*</span>
364+
${t('company-form.required-field-note-text')}
365+
</p>
362366
363367
<section class="form-section">
364368
<h3>${t('company-form.section-basic-data')}</h3>
@@ -543,11 +547,14 @@ class CompanyFormElement extends BaseFormElement {
543547
}
544548
545549
.required-field-note {
546-
color: var(--dbp-muted);
547-
font-size: 0.875rem;
548550
margin: 0 0 0.75rem;
549551
}
550552
553+
.red-marked-asterisk {
554+
color: var(--dbp-danger);
555+
font-weight: bold;
556+
}
557+
551558
.form-section {
552559
border-top: var(--dbp-border);
553560
margin-top: 1.5rem;

0 commit comments

Comments
 (0)