Skip to content

Commit

Permalink
added role and state to language toggles
Browse files Browse the repository at this point in the history
  • Loading branch information
abubakar sambo authored and abubakar sambo committed Jun 1, 2020
1 parent 76aa4b6 commit 756f932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/screens/language/Language.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface LanguageSelectItemProps {
}
const LanguageSelectItem = ({onPress, text, isActive}: LanguageSelectItemProps) => (
<>
<TouchableOpacity onPress={onPress}>
<TouchableOpacity onPress={onPress} accessibilityRole="radio" accessibilityState={{selected: isActive}}>
<Box paddingVertical="s" flexDirection="row" alignContent="center" justifyContent="space-between">
<Text variant="bodyText" marginVertical="s" color="overlayBodyText">
{text}
Expand Down Expand Up @@ -57,6 +57,7 @@ export const LanguageScreen = () => {
borderRadius={10}
backgroundColor="infoBlockNeutralBackground"
marginTop="m"
accessibilityRole="radiogroup"
>
<LanguageSelectItem
onPress={toggle('en')}
Expand Down

0 comments on commit 756f932

Please sign in to comment.