Browse Source

google play accessibility issues - modal buttons size

master
analuizaff 3 years ago
parent
commit
cf1d2dd5af
  1. 2
      src/app/components/Button.js
  2. 21
      src/app/components/ConfirmationModal.js
  3. 7
      src/app/components/LoadingMarkersModal.js
  4. 1
      src/app/screens/LoginScreen.js

2
src/app/components/Button.js

@ -23,7 +23,7 @@ const styles = StyleSheet.create({
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
width: "100%", width: "100%",
height: 42,
height: 48,
marginVertical: 10, marginVertical: 10,
}, },
text: { text: {

21
src/app/components/ConfirmationModal.js

@ -8,14 +8,29 @@ function Btn({ label, onPress, bgColor, txtColor, style={} }) {
return ( return (
<TouchableOpacity style={{ marginTop: 15 }} onPress={onPress}> <TouchableOpacity style={{ marginTop: 15 }} onPress={onPress}>
<View <View
style={[style, {
style={[
style,
{
paddingHorizontal: 40, paddingHorizontal: 40,
paddingVertical: 7, paddingVertical: 7,
backgroundColor: bgColor, backgroundColor: bgColor,
borderRadius: 6, borderRadius: 6,
}]}
height: 48,
flexDirection: "row",
},
]}
> >
<Text style={{ color: txtColor, fontWeight: "bold", textTransform: "uppercase" }}>{label}</Text>
<Text
style={{
color: txtColor,
fontWeight: "bold",
textTransform: "uppercase",
textAlignVertical: "center",
alignSelf: "center",
}}
>
{label}
</Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
); );

7
src/app/components/LoadingMarkersModal.js

@ -22,14 +22,19 @@ export default function LoadingMarkersModal({ show }) {
style={{ style={{
justifyContent: "flex-start", justifyContent: "flex-start",
alignSelf: "flex-end", alignSelf: "flex-end",
width: 48,
height: 36,
alignContent:"center",
alignItems: "flex-end"
}} }}
> >
<TouchableOpacity onPress={() => setClosed(true)}> <TouchableOpacity onPress={() => setClosed(true)}>
<MaterialCommunityIcons <MaterialCommunityIcons
name="close" name="close"
size={20}
size={26}
color={colors.primary} color={colors.primary}
alignItems="center" alignItems="center"
alignSelf="center"
/> />
</TouchableOpacity> </TouchableOpacity>
</View> </View>

1
src/app/screens/LoginScreen.js

@ -180,6 +180,7 @@ export default function LoginScreen(props) {
/> />
<TouchableNativeFeedback <TouchableNativeFeedback
style={{height: 48}}
onPress={() => { onPress={() => {
authContext.setUser(true); authContext.setUser(true);
}} }}

Loading…
Cancel
Save