-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Removing focus style on blur - Web/Desktop #8765
Removing focus style on blur - Web/Desktop #8765
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
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.
Tests well, but I wonder why can't we just standardize on onFocus
and onBlur
and rename those props in BasePicker
?
Let me check the scope of these props on Picker component and see if can simplify. |
@luacmartins What do you think? |
@LucioChavezFuentes let's see what you got. |
@stitesExpensify @luacmartins |
@luacmartins I made my changes in this PR, take a look on my refactoring |
@LucioChavezFuentes I didn't realize how much refactoring and how confusing standardizing on |
No problem. Reverting... |
This reverts commit 0dbb44d. Signed-off-by: LucioChavezFuentes <luciobertinchavez@gmail.com>
ec56e6b
to
d30e03e
Compare
PR updated. Ready to be reviewed. |
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.
LGTM! Thanks for the fix.
I'll check this today. |
Can you update the PR Screenshots with videos performing the steps? |
Sure, give me a moment. |
@Santhosh-Sellavel PR updated with videos. You can review them now. |
PR Reviewer Checklist
|
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, tests well!
The props onBlur, onClose, onFocus
are not defined basePickerPropTypes
.
Are we okay with this?
PR updated and ready to reviewed, but I'm having a Lint problem, looks like someone is working on an urgent problem. |
PR updated and ready to be reviewed. No more lint problems. |
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.
LGTM and tests well! Thanks for the fix! All yours @Santhosh-Sellavel and @stitesExpensify!
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! Just one question
Will review this today. |
@luacmartins Are the new copies verified by the marketing team? |
I don't believe so. However, I think this should be ok given that they are in line with our other messages. @stitesExpensify what do you think? |
If it was copied from previously approved copy then I think it's fine |
Any update on this PR? This PR also resolves #9015 |
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.
LGTM. All you @luacmartins @Santhosh-Sellavel
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.
LGTM and tests well! Thanks for the fix!
Seems like all concerns have been addressed. Merging... |
🚀 Deployed to staging by @luacmartins in version: 1.1.61-2 🚀
|
🚀 Deployed to production by @AndrewGable in version: 1.1.61-3 🚀
|
Details
Picker
sonClose
is not executed on Web and Desktop, soprops.onClose
has to be called withonBlur
callback.Fixed Issues
$ #7535 (especifaclly to this regression)
Tests
Web, Desktop, Android / Chrome
Settings
-->Preferences
. (or any other page withPicker
)Picker
, a blue outline focus should appear around it .( options should also appear, of course)
Picker
.Picker
should be removed.iOS, Android, iOS / Safari
Same steps as previous, just make sure the focus style disappear as soon as the menu is closed.
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
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)QA Steps
Same steps as Tests section.
Screenshots
Web
Screen.Recording.2022-04-29.at.22.14.50.720.mov
Mobile Web / Safari
Screen.Recording.2022-04-29.at.23.10.48.mov
Desktop
Screen.Recording.2022-04-29.at.23.26.32.mov
iOS
Screen.Recording.2022-04-29.at.23.19.22.mov
Android
Screen.Recording.2022-04-29.at.23.32.50.mov
Android/ Chrome
Screen.Recording.2022-04-29.at.23.41.21.mov