diff --git a/src/components/SelectionList/RadioListItem.tsx b/src/components/SelectionList/RadioListItem.tsx index 27f7fc7ef803..e7823209cf7e 100644 --- a/src/components/SelectionList/RadioListItem.tsx +++ b/src/components/SelectionList/RadioListItem.tsx @@ -3,6 +3,7 @@ import {View} from 'react-native'; import TextWithTooltip from '@components/TextWithTooltip'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; +import CONST from '@src/CONST'; import BaseListItem from './BaseListItem'; import type {RadioListItemProps} from './types'; @@ -22,6 +23,9 @@ function RadioListItem({ }: RadioListItemProps) { const styles = useThemeStyles(); const StyleUtils = useStyleUtils(); + const fullTitle = isMultilineSupported ? item.text?.trimStart() : item.text; + const indentsLength = (item.text?.length ?? 0) - (fullTitle?.length ?? 0); + const paddingLeft = Math.floor(indentsLength / CONST.INDENTS.length) * styles.ml3.marginLeft; return (