-
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 user select style on anchor tag #8757
Conversation
PR Reviewer Checklist
|
It could be better,
|
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 requested few changes.
cc: @deetergp
@@ -36,7 +36,7 @@ const customHTMLElementModels = { | |||
}), | |||
}; | |||
|
|||
const defaultViewProps = {style: {alignItems: 'flex-start'}}; | |||
const defaultViewProps = {style: {alignItems: 'flex-start', userSelect: 'text'}}; |
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.
We could refactor this to use the newly added style, instead of hardcoding here.
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.
Possibly refactor both , use Styles.alignItemsStart
instead of alignItems: 'flex-start'
updated and pulled from main |
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 to me. @Santhosh-Sellavel, since you requested changes, I'll leave it for you to give your seal of approval.
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, tests well!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by @sketchydroide in version: 1.1.57-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by @chiragsalian in version: 1.1.57-17 🚀
|
Details
adding style userSelect: 'text' to BaseHTMLEngineProvider and BaseAnchorForCommentsOnly.
Fixed Issues
$ #8421
Tests
There are a bunch of wizard type tools online you can use to create the SPF and DMARC records:
https://www.spf-record.com/generator
https://dmarcian.com/dmarc-record-wizard/
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
There are a bunch of wizard type tools online you can use to create the SPF and DMARC records:
https://www.spf-record.com/generator
https://dmarcian.com/dmarc-record-wizard/
Screenshots
Web
Screen.Recording.2022-04-23.at.13.58.47.mov
Mobile Web
Screen.Recording.2022-04-23.at.14.15.03.mov
Screen.Recording.2022-04-23.at.14.22.23.mov
Desktop
Screen.Recording.2022-04-23.at.14.07.29.mov
iOS
Screen.Recording.2022-04-23.at.14.14.26.mov
Android
Screen.Recording.2022-04-23.at.14.20.30.mov