Skip to content

Commit

Permalink
Merge pull request #82 from AbubakarSambo/issue/65/languagecontrols
Browse files Browse the repository at this point in the history
Addresses roles and state for language toggle
  • Loading branch information
jordanAtShopify authored Jun 3, 2020
2 parents 207bb9f + 756f932 commit b3b2603
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 @@ -58,6 +58,7 @@ export const LanguageScreen = () => {
borderRadius={10}
backgroundColor="infoBlockNeutralBackground"
marginTop="m"
accessibilityRole="radiogroup"
>
<LanguageSelectItem
onPress={toggle('en')}
Expand Down

0 comments on commit b3b2603

Please sign in to comment.