-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make referral banner dismissible #33925
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c2866e5
make referral banner dismissable
gijoe0295 7f13d57
Merge branch 'main' of https://github.com/gijoe0295/App into gijoe-32499
gijoe0295 15d87b1
dismiss money request banner
gijoe0295 21807d8
Merge branch 'main'
gijoe0295 f64a93a
reapply changes
gijoe0295 d9f6a59
increase pressable space
gijoe0295 bdc980d
fix lint
gijoe0295 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the pressable and the icon have same size.
Screen.Recording.2024-01-11.at.3.31.42.PM.mov
Shouldn't we have some extra size for pressing? For now both the icon size and the pressing place size is 20
@dannymcclain yours thoughts on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dannymcclain what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call—ideally the pressable area of the
x
icon should be at least a 44px square.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dannymcclain Can you confirm whether it is
40
or44
?40
is the pressable area of the back (and other) button.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if we do so, the button will move to the left like this:
As the previous
Info
icon did not have pressable space as40
either, I suggest we keep it the same, i.e. keep the pressable and the icon having the same size as20
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha—40 would be acceptable if that's what we do elsewhere.
I see what you're talking about in your before and after. The right thing to do here IMO would be to adjust the padding on the actual banner so that the
x
icon gets the proper amount of clickable space without impacting the size of the banner/layout of the icon. @Expensify/design do y'all think it's worth it to adjust the banner to give that icon a proper amount of clickable area?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with that Danny. But I could have sworn we can also solve for this using React Native's hitslop, right? This we we can keep the button where it is but just define a greater hit area around around the button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abdulrahuman5196 @dannymcclain I've updated, please check. I tried to keep everything visually the same though it requires some hard-coding for the padding.
Or we can do nothing and the
hitSlop
will be automatically calculated.