-
Notifications
You must be signed in to change notification settings - Fork 3.5k
17014 - migrate OptionRowLHN to PressableWithFeedback #19660
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
Conversation
|
@MonilBhavsar 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] |
|
Requesting a review from @roryabraham since he is context on the issue |
| hovered && !props.isFocused ? props.hoverStyle : null, | ||
| ]} | ||
| accessibilityLabel={optionItem.text} | ||
| accessibilityRole="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.
This is not in propTypes. should we add it?
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 think no because we just added specifying required values for PressableWithFeedback and defining that OptionRowLHN will always be a button and have the label optionItem.text
|
@MonilBhavsar I changed the blue border style that appears when the user wants to focus a specific element using a keyboard by pressing the Oldold2.movNewnew.mov |
|
Thanks! Looks good to me. Would like to get a quick check from design team too cc @shawnborton |
|
Seems fine to me? It's identical, right? |
|
We removed blue border and style now resembles to hover style |
|
Got it, sounds good to me! |
|
The new main has a similar change to the one in this PR, but it changes |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
|
@Skalakid sounds good 👍 |
|
Blue borders bug was fixed in #20838, I think we can close this PR |
Details
Fixed Issues
$ 17014
PROPOSAL: 17014
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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
web.mov
Mobile Web - Chrome
web-mobile-chrome.mov
Mobile Web - Safari
web-mobile-safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov