-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add padding to skin tone picker #15730
Conversation
@thesahindia @danieldoglas One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/Videos |
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.
Looks good to me!
cc: @danieldoglas
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.2.82-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.2.82-4 🚀
|
@stitesExpensify #15868 issue seems to be a regression caused by this PR. Not sure on the process on this case, so I will provide the root cause and solution in the proposal template ProposalPlease re-state the problem that we are trying to solve in this issue.This issue(#15868) seems to be a regression from #15730 What is the root cause of that problem?We have increased the height of the emoji component from 392 to 416 i.e 416-392 = 24 new space What changes do you think we should make in order to solve the problem?Option 1: Currently we show the 'no results component' for only big screen web devices in which case the emoji picker component has 416 height. So instead of hardcoding height of 'No results component', we can add styles.h100(100% height) here - https://github.com/Expensify/App/blob/main/src/components/EmojiPicker/EmojiPickerMenu/index.js#L507. This way 'No results' component will automatically adjust to the height of emoji picker and we don't need to update the height value of 'No results' component everytime we update the picker height. Working video after fix Screen.Recording.2023-03-15.at.11.31.45.PM.movWhat alternative solutions did you explore? (Optional)There are multiple ways to achieve the result by modifying different styles but the above seems the best and future proof. |
Hi @abdulrahuman5196 can you please re-post your proposal in the issue you linked? I'm making it external right now. |
Thank you @stitesExpensify . Posted my proposal there as well. |
@@ -559,7 +559,7 @@ const CONST = { | |||
ADD_PAYMENT_MENU_POSITION_X: 356, | |||
EMOJI_PICKER_SIZE: { | |||
WIDTH: 320, | |||
HEIGHT: 392, | |||
HEIGHT: 416, |
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.
We have increased the height of the emoji component from 392
to 416
And increased skin tone padding from p1
to p3
But we have not updated the height when there are no results. Causing #15868
App/src/components/EmojiPicker/EmojiPickerMenu/index.js
Lines 501 to 511 in 7bf0b0b
{this.state.filteredEmojis.length === 0 | |
? ( | |
<Text | |
style={[ | |
styles.disabledText, | |
styles.emojiPickerList, | |
styles.dFlex, | |
styles.alignItemsCenter, | |
styles.justifyContentCenter, | |
this.isMobileLandscape() && styles.emojiPickerListLandscape, | |
]} |
Adding a flexGrow1
fixed the issue and we won't have to worry about it anymore.
Details
Fixed Issues
$ #15181
Tests
Old:
New:
Offline tests
N/A Just padding
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android