diff --git a/packages/form-js-carbon-styles/src/carbon-styles.js b/packages/form-js-carbon-styles/src/carbon-styles.js
index ef4a67ac1..8c5fbeeb1 100644
--- a/packages/form-js-carbon-styles/src/carbon-styles.js
+++ b/packages/form-js-carbon-styles/src/carbon-styles.js
@@ -301,8 +301,7 @@ const READONLY_STYLES = css`
}
}
- &.fjs-checked .fjs-input[type='checkbox'],
- .fjs-form-field-label.fjs-checked .fjs-input[type='checkbox'] {
+ &.fjs-checked .fjs-input[type='checkbox'] {
&:before {
border: 1px solid var(--cds-icon-disabled);
background: transparent;
@@ -418,8 +417,8 @@ const LABEL_DESCRIPTION_ERROR_STYLES = css`
margin-bottom: var(--cds-spacing-03);
}
- .fjs-form-field.fjs-form-field-radio .fjs-form-field-label:not(:first-of-type),
- .fjs-form-field.fjs-form-field-checklist .fjs-form-field-label:not(:first-of-type) {
+ .fjs-form-field.fjs-form-field-radio .fjs-inline-label,
+ .fjs-form-field.fjs-form-field-checklist .fjs-inline-label {
margin: 0;
margin-bottom: 0.1875rem;
}
@@ -515,7 +514,7 @@ const CHECKBOX_STYLES = css`
}
.fjs-form-field.fjs-checked .fjs-input[type='checkbox'],
- .fjs-form-field .fjs-form-field-label.fjs-checked .fjs-input[type='checkbox'] {
+ .fjs-form-field .fjs-inline-label.fjs-checked .fjs-input[type='checkbox'] {
&:before {
border: none;
border-width: 1px;
diff --git a/packages/form-js-carbon-styles/src/carbon-styles.scss b/packages/form-js-carbon-styles/src/carbon-styles.scss
index 4568b1293..3e43f4f8b 100644
--- a/packages/form-js-carbon-styles/src/carbon-styles.scss
+++ b/packages/form-js-carbon-styles/src/carbon-styles.scss
@@ -408,8 +408,7 @@
}
}
- &.fjs-checked .fjs-input[type='checkbox'],
- .fjs-form-field-label.fjs-checked .fjs-input[type='checkbox'] {
+ &.fjs-checked .fjs-input[type='checkbox'] {
&:before {
border: 1px solid var(--cds-icon-disabled);
background: transparent;
@@ -535,13 +534,13 @@
margin-bottom: var(--cds-spacing-03);
}
- .fjs-form-field.fjs-form-field-radio .fjs-form-field-label:not(:first-of-type),
- .fjs-form-field.fjs-form-field-checklist .fjs-form-field-label:not(:first-of-type) {
+ .fjs-form-field.fjs-form-field-radio .fjs-inline-label,
+ .fjs-form-field.fjs-form-field-checklist .fjs-inline-label {
margin: 0;
margin-bottom: 0.1875rem;
}
- .fjs-form-field.fjs-form-field-radio .fjs-form-field-label:not(:first-of-type) {
+ .fjs-form-field.fjs-form-field-radio .fjs-inline-label {
min-height: #{rem(27)};
}
@@ -632,7 +631,7 @@
}
.fjs-form-field.fjs-checked .fjs-input[type='checkbox'],
- .fjs-form-field .fjs-form-field-label.fjs-checked .fjs-input[type='checkbox'] {
+ .fjs-form-field .fjs-inline-label.fjs-checked .fjs-input[type='checkbox'] {
&:before {
border: none;
border-width: 1px;
diff --git a/packages/form-js-viewer/assets/form-js-base.css b/packages/form-js-viewer/assets/form-js-base.css
index 106de6b78..9ca6b91ae 100644
--- a/packages/form-js-viewer/assets/form-js-base.css
+++ b/packages/form-js-viewer/assets/form-js-base.css
@@ -283,6 +283,11 @@
opacity: 1;
}
+.fjs-container .fjs-inline-label {
+ align-items: center;
+ display: flex;
+}
+
.fjs-container .fjs-form-field-label {
display: flex;
align-items: center;
diff --git a/packages/form-js-viewer/src/render/components/form-fields/Checkbox.js b/packages/form-js-viewer/src/render/components/form-fields/Checkbox.js
index c418852a5..43f872afb 100644
--- a/packages/form-js-viewer/src/render/components/form-fields/Checkbox.js
+++ b/packages/form-js-viewer/src/render/components/form-fields/Checkbox.js
@@ -26,7 +26,7 @@ export function Checkbox(props) {
return (
diff --git a/packages/form-js-viewer/src/render/components/form-fields/Checklist.js b/packages/form-js-viewer/src/render/components/form-fields/Checklist.js
index e54f5825a..8db1ae068 100644
--- a/packages/form-js-viewer/src/render/components/form-fields/Checklist.js
+++ b/packages/form-js-viewer/src/render/components/form-fields/Checklist.js
@@ -68,18 +68,16 @@ export function Checklist(props) {
{loadState == LOAD_STATES.LOADED &&
- options.map((o, index) => {
+ options.map((option, index) => {
const itemDomId = `${domId}-${index}`;
- const isChecked = hasEqualValue(o.value, values);
+ const isChecked = hasEqualValue(option.value, values);
return (
-
+
+
);
})}
diff --git a/packages/form-js-viewer/src/render/components/form-fields/Radio.js b/packages/form-js-viewer/src/render/components/form-fields/Radio.js
index c3a828f0c..5d9552088 100644
--- a/packages/form-js-viewer/src/render/components/form-fields/Radio.js
+++ b/packages/form-js-viewer/src/render/components/form-fields/Radio.js
@@ -69,12 +69,11 @@ export function Radio(props) {
const isChecked = isEqual(option.value, value);
return (
-