-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix: Allow triple-click text selection to flow around pills #30349
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: Allow triple-click text selection to flow around pills #30349
Conversation
|
Your test failures are mostly because you did not update the screenshots. I'm not sure if you really intended to change the size of the pill, if you did, you need to run |
…x rendering issue in Playwright tests
Yes, changing to inline-block caused the avatar to shift vertically since we no longer get align-items: center from inline-flex. The vertical-align: -2.5px was added to visually match the previous centering and maintain the same appearance.
It is related to the triple click selection. I mean maintaining text continuity so that triple click selection works as users expect.
I solved them by changing inline to inline-block. |
I didn’t intend to change the pill size. I changed inline to inline-block, and with that change the tests still pass using the existing screenshots. |
Thanks for fixing the tests. Ideally this would also add a test for the triple click behaviour so that doesn't regress, if possible? |
Added a test for it. |
That's great, thank you! |
Fixes #30296
Fixes an issue where triple clicking to select message text would stop at pills instead of selecting the entire line.
Changes made:
.mx_Pill
display frominline-flex
toinline
to allow proper text flowuser-select: text
to.mx_BaseAvatar
to ensure avatars don't block selectionvertical-align: -2.5px
to maintain visual consistencyBefore/After
Before: Triple clicking a message line would stop selection at pill boundaries
After: Triple clicking selects the entire message line as expected
Testing Strategy
Checklist
public
/exported
symbols have accurate TSDoc documentation.