Skip to content

Commit

Permalink
fix(accessibility): bouton fermer (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebret authored Oct 27, 2022
1 parent 69df4bf commit d97b1b8
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions front/src/components/aroundMe/aroundMeFilter.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ import type { PoiType } from "@socialgouv/nos1000jours-lib";
import { AROUNDME_FILTER_DATA } from "@socialgouv/nos1000jours-lib";
import * as React from "react";
import { useCallback, useEffect, useState } from "react";
import {
Modal,
ScrollView,
StyleSheet,
TouchableOpacity,
View,
} from "react-native";
import { Modal, ScrollView, StyleSheet, View } from "react-native";

import {
CancelButton,
CloseButton,
CommonText,
CustomButton,
Icomoon,
IcomoonIcons,
TitleH1,
} from "../../components/baseComponents";
import Chip from "../../components/baseComponents/chip.component";
Expand Down Expand Up @@ -233,17 +226,13 @@ const AroundMeFilter: React.FC<Props> = ({ visible, hideModal }) => {
{showModalContent && (
<View style={Styles.modale.behindOfModal}>
<View style={styles.mainContainer}>
<TitleH1 title={Labels.aroundMe.filter.title} animated={false} />
<TouchableOpacity
style={styles.closeModalView}
onPress={onCloseModalButtonPressed}
>
<Icomoon
name={IcomoonIcons.fermer}
size={Sizes.xs}
color={Colors.primaryBlue}
<View style={styles.modalHeader}>
<TitleH1
title={Labels.aroundMe.filter.title}
animated={false}
/>
</TouchableOpacity>
<CloseButton onPress={onCloseModalButtonPressed} clear={true} />
</View>
<ScrollView>
{displayedCartoFilters.map(
(
Expand Down Expand Up @@ -312,6 +301,11 @@ const styles = StyleSheet.create({
margin: Margins.default,
padding: Paddings.default,
},
modalHeader: {
alignItems: "flex-start",
flexDirection: "row",
justifyContent: "space-between",
},
partsTitle: {
color: Colors.primaryBlueDark,
fontSize: Sizes.sm,
Expand Down

0 comments on commit d97b1b8

Please sign in to comment.