-
Notifications
You must be signed in to change notification settings - Fork 762
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(wasm): double-click-selecting a textblock would bleed into other textblocks #18031
fix(wasm): double-click-selecting a textblock would bleed into other textblocks #18031
Conversation
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-18031/index.html |
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-18031/index.html |
src/Uno.UI/WasmCSS/Uno.UI.css
Outdated
@@ -135,6 +135,7 @@ embed.uno-frameworkelement.uno-unarranged { | |||
background-clip: text !important; | |||
/* overflow:hidden is required for text-overflow: ellipsis to work correctly */ | |||
overflow: hidden; | |||
display: inline-flex; /* This is a workaround to prevent selection bleeding, see https://github.com/unoplatform/uno/issues/13440 */ |
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.
Does this have some potential disadvantage for us?
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.
My understanding is that it shouldn't have any visible side effects.
elements are inline by default and flex
only affects child elements, except that we don't nest elements inside a <p>
.
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.
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 was a good fix.
@ramezgerges seems some WASM test is failing here |
Switching to |
GitHub Issue (If applicable): closes #13440, closes unoplatform/Uno.Themes#1459
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):