Skip to content

Commit

Permalink
Feat(INJI-502): Adjusted the CSS of the search Icon & search bar
Browse files Browse the repository at this point in the history
Signed-off-by: anil_majji <[email protected]>
  • Loading branch information
Anil-kumar-Majji committed Oct 30, 2023
1 parent 0ee1ed1 commit f72e495
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
15 changes: 10 additions & 5 deletions components/ui/themes/DefaultTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1160,17 +1160,22 @@ export const DefaultTheme = {
issuersSearchBar: {
borderWidth: 1,
borderColor: Colors.Gray50,
height: Dimensions.get('window').height * 0.06,
width: Dimensions.get('window').width * 0.85,
paddingLeft: 15,
height: Dimensions.get('window').height * 0.055,
width: Dimensions.get('window').width * 0.84,
paddingLeft: 12,
borderLeftWidth: 0,
borderTopRightRadius: 9,
borderBottomRightRadius: 9,
},
searchIcon: {
justifyContent: 'center',
backgroundColor: Colors.Gray50,
height: Dimensions.get('window').height * 0.06,
paddingLeft: 15,
height: Dimensions.get('window').height * 0.055,
width: Dimensions.get('window').width * 0.1,
borderColor: Colors.Gray50,
borderTopWidth: 1,
borderBottomWidth: 1,
borderLeftWidth: 1,
borderTopLeftRadius: 9,
borderBottomLeftRadius: 9,
},
Expand Down
13 changes: 9 additions & 4 deletions components/ui/themes/PurpleTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1162,17 +1162,22 @@ export const PurpleTheme = {
issuersSearchBar: {
borderWidth: 1,
borderColor: Colors.Gray50,
height: Dimensions.get('window').height * 0.06,
width: Dimensions.get('window').width * 0.85,
paddingLeft: 15,
height: Dimensions.get('window').height * 0.055,
width: Dimensions.get('window').width * 0.84,
paddingLeft: 12,
borderLeftWidth: 0,
borderTopRightRadius: 9,
borderBottomRightRadius: 9,
},
searchIcon: {
justifyContent: 'center',
backgroundColor: Colors.Gray50,
height: Dimensions.get('window').height * 0.06,
height: Dimensions.get('window').height * 0.055,
width: Dimensions.get('window').width * 0.1,
borderColor: Colors.Gray50,
borderTopWidth: 1,
borderBottomWidth: 1,
borderLeftWidth: 1,
borderTopLeftRadius: 9,
borderBottomLeftRadius: 9,
},
Expand Down
8 changes: 4 additions & 4 deletions screens/Issuers/IssuersScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ export const IssuersScreen: React.FC<
<Icon
testID="search"
name="search"
color={Theme.Colors.blackIcon}
size={29}
color={Theme.Colors.GrayIcon}
size={27}
style={Theme.IssuersScreenStyles.searchIcon}
/>
<TextInput
Expand All @@ -175,7 +175,7 @@ export const IssuersScreen: React.FC<
/>
</Row>

<ScrollView style={Theme.IssuersScreenStyles.issuersContainer}>
<View style={Theme.IssuersScreenStyles.issuersContainer}>
{controller.issuers.length > 0 && (
<FlatList
data={filteredSearchData}
Expand All @@ -201,7 +201,7 @@ export const IssuersScreen: React.FC<
keyExtractor={item => item.id}
/>
)}
</ScrollView>
</View>
</Column>
)}
</React.Fragment>
Expand Down

0 comments on commit f72e495

Please sign in to comment.