From 51b1f3a48d7930acd3630e1d0fc4a97f932e8162 Mon Sep 17 00:00:00 2001 From: Douglas Bouttell Date: Wed, 10 Apr 2024 14:36:59 +0100 Subject: [PATCH 1/4] fix(styles): Don't clip radio buttons --- packages/form-js-viewer/assets/form-js-base.css | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/form-js-viewer/assets/form-js-base.css b/packages/form-js-viewer/assets/form-js-base.css index 106de6b78..bf496d7a5 100644 --- a/packages/form-js-viewer/assets/form-js-base.css +++ b/packages/form-js-viewer/assets/form-js-base.css @@ -287,7 +287,6 @@ display: flex; align-items: center; white-space: nowrap; - overflow: hidden; color: var(--color-text-light); } From 6325f6476f9d8b869be0822fa53b18cfcd3904d8 Mon Sep 17 00:00:00 2001 From: Skaiir Date: Thu, 12 Sep 2024 12:34:02 +0200 Subject: [PATCH 2/4] fix: move radio and checkbox buttons out of the label dom Closes #3688 --- .../form-js-viewer/assets/form-js-base.css | 5 +++++ .../render/components/form-fields/Checkbox.js | 5 +++-- .../render/components/form-fields/Checklist.js | 18 ++++++++++-------- .../src/render/components/form-fields/Radio.js | 15 ++++++++------- 4 files changed, 26 insertions(+), 17 deletions(-) diff --git a/packages/form-js-viewer/assets/form-js-base.css b/packages/form-js-viewer/assets/form-js-base.css index bf496d7a5..8f8528c86 100644 --- a/packages/form-js-viewer/assets/form-js-base.css +++ b/packages/form-js-viewer/assets/form-js-base.css @@ -283,10 +283,15 @@ opacity: 1; } +.fjs-container .fjs-inline-label { + display: flex; +} + .fjs-container .fjs-form-field-label { display: flex; align-items: center; white-space: nowrap; + overflow: hidden; color: var(--color-text-light); } 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..79b8b4eb7 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 @@ -73,13 +73,7 @@ export function Checklist(props) { const isChecked = hasEqualValue(o.value, values); return ( -