-
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
Fix the focus effect of categories #27518
Fix the focus effect of categories #27518
Conversation
Reviewer Checklist
Screenshots/VideosWeb27518-web.movMobile Web - Chrome27518-web-chrome.movMobile Web - Safari27518-web-safari.movDesktop27518-desktop.moviOS27518-ios.movAndroid27518-android.mov |
…/27354-wrong-focus-position
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.
Reviewed, tested and approved.
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.3.74-0 🚀
|
Replied on slack here |
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
@@ -34,21 +34,36 @@ function CategoryPicker({policyCategories, reportID, iouType, iou, policyRecentl | |||
]; | |||
}, [iou.category]); | |||
|
|||
const sections = useMemo(() => { |
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.
Disabled category is not indicated - #36485 (comment)
Details
The PR is fixing a regression from #26501. There was an inconsistency between selected item and focused one. The PR syncs the focus effect with a selected item or set the focus effect to the first item.
Fixed Issues
$ #27354
PROPOSAL: N/A
Tests
1. The focus effect works for the long category list
2. The focus effect works for the short category list
Offline tests
Same as "Tests".
QA Steps
Same as "Tests".
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Chrome.Large.mp4
Chrome.Small.mp4
Safari.Large.mp4
Safari.Small.mp4
Mobile Web - Chrome
Android.Chrome.Large.mp4
Android.Chrome.Small.mp4
IOS.Chrome.Large.mp4
IOS.Chrome.Small.mp4
Mobile Web - Safari
IOS.Safari.Large.mp4
IOS.Safari.Small.mp4
Desktop
Desktop.Large.mp4
Desktop.Small.mp4
iOS
IOS.Large.mp4
IOS.Small.mp4
Android
Android.Large.mp4
Android.Small.mp4