Add userSelect to outermost Text in TextCommentFragment#87107
Add userSelect to outermost Text in TextCommentFragment#87107mjasikowski merged 3 commits intomainfrom
Conversation
Apply userSelect: 'text' to the outermost Text component in TextCommentFragment so the (edited) label is included in triple-click paragraph selection on web. Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
There was a problem hiding this comment.
Applied — removed the redundant userSelect style since the outermost Text wrapper already handles it.
There was a problem hiding this comment.
Applied — same as above, removed the duplicate userSelect from the inner Text as well.
The outermost Text wrapper already applies userSelect, so the inner TextWithEmojiFragment and Text components don't need it duplicated. Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot, please mark this PR as ready. |
|
PR has been marked as ready for review. |
|
@AndrewGable 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppDoes not affect: android.native.mp4Android: mWeb ChromeDoes not affect: android.chrome.mp4iOS: HybridAppDoes not affect: ios.native.mp4iOS: mWeb SafariDoes not affect: ios.safari.mp4MacOS: Chrome / SafariDoes not affect: mac.safari.mp4Windows/Linux: Chromechrome.mp4 |
|
@codex review |
|
@MelvinBot, please merge the latest changes from the main branch |
|
Codex Review: Didn't find any major issues. Breezy! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
…sTripleClickSelect Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
|
Merged the latest changes from |
|
@mjasikowski 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] |
|
Looks like I'm the last one unless @AndrewGable also needs to review? |
|
I'll merge, let's only have one person to blame if anything goes wrong lol |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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.3.55-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is a CSS-only fix ( |
Explanation of Change
The
(edited)label in text-rendered comments was not included in triple-click paragraph selection on web. The outermostTextcomponent inTextCommentFragmentlacked auserSelectstyle, so the browser excluded the(edited)label from selection. This addsuserSelect: 'text'(with the same touch-screen/narrow-layout conditional already used by inner components) to the outermostTextwrapper, ensuring the entire comment — including(edited)— is selected on triple-click.Fixed Issues
$ #86871
PROPOSAL: #86871 (comment)
Tests
(edited)label is included in the selectionOffline tests
N/A — this is a CSS selection behavior change; no network dependency.
QA Steps
(edited)label is included in the text selectionPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
N/A — web-only CSS selection change
Android: mWeb Chrome
N/A — web-only CSS selection change
iOS: Native
N/A — web-only CSS selection change
iOS: mWeb Safari
N/A — web-only CSS selection change
MacOS: Chrome / Safari