The Open Standard for Generative UI
fix(react-ui): wrap long unbreakable labels in RadioItem/CheckBoxItem (#753)
Shinobu Hayashid74757fc1242
diff --git a/packages/react-ui/src/components/CheckBoxItem/checkBoxItem.scss b/packages/react-ui/src/components/CheckBoxItem/checkBoxItem.scssindex 4c182ca45..6447789ce 100644--- a/packages/react-ui/src/components/CheckBoxItem/checkBoxItem.scss+++ b/packages/react-ui/src/components/CheckBoxItem/checkBoxItem.scss@@ -54,6 +54,7 @@.openui-checkbox-item-content {display: flex;flex-direction: column;+ min-width: 0;}.openui-checkbox-item-label {@@ -61,6 +62,7 @@@include cssUtils.typography(primary, default);color: cssUtils.$text-neutral-primary;cursor: pointer;+ overflow-wrap: anywhere;&:disabled {color: cssUtils.$text-neutral-tertiary;cursor: not-allowed;@@ -70,4 +72,5 @@.openui-checkbox-item-description {@include cssUtils.typography(body, default);color: cssUtils.$text-neutral-secondary;+ overflow-wrap: anywhere;}diff --git a/packages/react-ui/src/components/RadioItem/radioItem.scss b/packages/react-ui/src/components/RadioItem/radioItem.scssindex 8c34ac8fe..b4d062605 100644--- a/packages/react-ui/src/components/RadioItem/radioItem.scss+++ b/packages/react-ui/src/components/RadioItem/radioItem.scss@@ -84,11 +84,18 @@fill: cssUtils.$border-interactive;}}+.openui-radio-item-content {+ display: flex;+ flex-direction: column;+ min-width: 0;+}+.openui-radio-item-label {flex: 1;@include cssUtils.typography(primary, default);color: cssUtils.$text-neutral-primary;cursor: pointer;+ overflow-wrap: anywhere;&:disabled {color: cssUtils.$text-neutral-tertiary;cursor: not-allowed;@@ -98,4 +105,5 @@.openui-radio-item-description {@include cssUtils.typography(body, default);color: cssUtils.$text-neutral-secondary;+ overflow-wrap: anywhere;}