Skip to content

Commit

Permalink
fix the focus outline isn't circle
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Oct 12, 2024
1 parent e4969b2 commit d6c5c01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
20 changes: 9 additions & 11 deletions src/components/RadioButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import {View} from 'react-native';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import CONST from '@src/CONST';
Expand Down Expand Up @@ -36,17 +35,16 @@ function RadioButton({isChecked, onPress, accessibilityLabel, hasError = false,
pressDimmingValue={1}
accessibilityLabel={accessibilityLabel}
role={CONST.ROLE.RADIO}
style={[styles.radioButtonContainer, hasError && styles.borderColorDanger, disabled && styles.cursorDisabled]}
>
<View style={[styles.radioButtonContainer, hasError && styles.borderColorDanger, disabled && styles.cursorDisabled]}>
{isChecked && (
<Icon
src={Expensicons.Checkmark}
fill={theme.checkBox}
height={14}
width={14}
/>
)}
</View>
{isChecked && (
<Icon
src={Expensicons.Checkmark}
fill={theme.checkBox}
height={14}
width={14}
/>
)}
</PressableWithFeedback>
);
}
Expand Down
7 changes: 5 additions & 2 deletions src/pages/NewChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,12 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
disabled={item.isDisabled}
role={CONST.ROLE.BUTTON}
accessibilityLabel={CONST.ROLE.BUTTON}
style={[styles.flexRow, styles.alignItemsCenter, styles.ml3]}
style={[styles.flexRow, styles.alignItemsCenter, styles.ml5, styles.optionSelectCircle]}
>
<SelectCircle isChecked={item.isSelected} />
<SelectCircle
isChecked={item.isSelected}
selectCircleStyles={styles.ml0}
/>
</PressableWithFeedback>
);
}
Expand Down

0 comments on commit d6c5c01

Please sign in to comment.