fix: The selection is smaller than member name row when navigating#37319
fix: The selection is smaller than member name row when navigating#37319pecanoro merged 2 commits intoExpensify:mainfrom
Conversation
|
@hoangzinh Please 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] |
| @@ -30,7 +30,7 @@ function TableListItem({ | |||
| <BaseListItem | |||
| item={item} | |||
| pressableStyle={[[styles.selectionListPressableItemWrapper, isFocused && styles.activeComponentBG]]} | |||
There was a problem hiding this comment.
can we update the old style here to sidebarLinkActive. To align with other list styles when it's focused
There was a problem hiding this comment.
@hoangzinh can you confirm with internal first before I change it?
There was a problem hiding this comment.
@pecanoro what do you think about this one? I found that we're using sidebarLinkActive in the invite member or search page as a background color when an item is focused as well.


There was a problem hiding this comment.
Hmm, I am not sure if that is what we want, tagging @shawnborton to confirm this is fine.
There was a problem hiding this comment.
If I understood correctly, it seems we are using activeComponentBG to focus elements in some pages but then sidebarLinkActive for others. @hoangzinh is that what you meant?
There was a problem hiding this comment.
Ah yes, we want a background color when a row is :focus by keyboard navigation here (using up/down keyboard). I found that we're using sidebarLinkActive which is theme.buttonHoveredBG in other pages like Search/Invite member/even the previous workspace member page.
There was a problem hiding this comment.
I agree with aligning this with how we handle it on other pages, so +1 for consistency there.
There was a problem hiding this comment.
Nice! @dukenv0307 Let's change it to sidebarLinkActive then?
There was a problem hiding this comment.
@hoangzinh i just updated code, please check again.
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-28.at.00.04.06.android.movAndroid: mWeb ChromeScreen.Recording.2024-02-28.at.00.05.51.android.chrome.moviOS: NativeScreen.Recording.2024-02-28.at.00.10.58.ios.moviOS: mWeb SafariScreen.Recording.2024-02-28.at.00.13.22.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-02-27.at.23.49.50.web.movMacOS: DesktopScreen.Recording.2024-02-28.at.00.01.09.desktop.mov |
hoangzinh
left a comment
There was a problem hiding this comment.
It looks like @dukenv0307 is not available atm. Given this is a DB blocker, It's fine to me with current background color when a member is focused. We can have a follow-up PR if needed.
|
@hoangzinh The bug was minor so I removed the deploy blocker label so we don't have to rush it |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
✋ 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/pecanoro in version: 1.4.46-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.46-2 🚀
|
Details
Fixed Issues
$ #37293
PROPOSAL: #37293 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov