change focus background color of element#51937
Conversation
|
@jjcoffee The jest test is failing on the latest main. |
|
Can someone give Design a quick overview of what this PR is fixing? I thought we had already implemented this so just want to make sure I understand what bug it is fixing... thanks! |
|
We're fixing some related bugs here
|
|
Ah okay that looks better. For the second screenshot above though, which color are we using? I thought the idea was to use the same color we use for hover for the arrow/keypress :focus? |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-11-04_10.54.21.mp4Android: mWeb Chromeandroid-chrome-2024-11-04_10.57.06.mp4iOS: Nativeios-app-2024-11-04_11.04.20.mp4iOS: mWeb Safariios-safari-2024-11-04_11.06.30.mp4MacOS: Chrome / Safaridesktop-chrome-2024-11-04_10.28.37.mp4MacOS: Desktopdesktop-app-2024-11-04_10.50.20.mp4 |
|
@nkdengineer bump on the question above - it would be GREAT to get this reviewed & merged quickly since this fixes so many blockers! |
|
@Beamanator My PR is reverted and the blocker is fixed. We're creating it again and avoiding the blockers here. |
Yes, I use the hover background color. |
|
Ahhh reverted in #51795 - sorry bout that, 🏃 |
|
Looks good, I can confirm it fixes all the previously raised blocker issues. |
|
Videos here look good to me 👍 |
|
✋ 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/mjasikowski in version: 9.0.57-0 🚀
|
|
FYI I think this PR caused this regression #51984. It seems like we're not handling the disabled case. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.57-10 🚀
|
| } | ||
|
|
||
| return { | ||
| backgroundColor, |
There was a problem hiding this comment.
we should return {} to avoid overriding backgroundColor to undefined. Ref: #52246


Explanation of Change
Fixed Issues
$ #50779
#51784
#51788
#51786
PROPOSAL: #50779 (comment)
Tests
Offline tests
same as above
QA Steps
same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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-resize.mp4
Screen.Recording.2024-11-04.at.14.35.15.mov
MacOS: Desktop
desktop.mov