File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/layout/MultipleSelect Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ .optionDescription {
2+ display : block;
3+ margin-top : var (--ds-size-1 );
4+ color : var (--ds-color-neutral-text-subtle );
5+ }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { useGetOptions } from 'src/features/options/useGetOptions';
1414import { useSaveValueToGroup } from 'src/features/saveToGroup/useSaveToGroup' ;
1515import { useIsValid } from 'src/features/validation/selectors/isValid' ;
1616import { ComponentStructureWrapper } from 'src/layout/ComponentStructureWrapper' ;
17+ import classes from 'src/layout/MultipleSelect/MultipleSelectComponent.module.css' ;
1718import utilClasses from 'src/styles/utils.module.css' ;
1819import { useLabel } from 'src/utils/layout/useLabel' ;
1920import { useItemWhenType } from 'src/utils/layout/useNodeItem' ;
@@ -164,7 +165,11 @@ export function MultipleSelectComponent({
164165 < span >
165166 < wbr />
166167 < Lang id = { option . label } />
167- { option . description && < Lang id = { option . description } /> }
168+ { option . description && (
169+ < span className = { classes . optionDescription } >
170+ < Lang id = { option . description } />
171+ </ span >
172+ ) }
168173 </ span >
169174 </ Suggestion . Option >
170175 ) ) }
You can’t perform that action at this time.
0 commit comments