-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
[mobile ux] Copy-paste in shopfront message display strange white strips #1860
Comments
Hey @myriamboure I think this could be something a newbie could do, so would you be able to add a little bit more information about what you did / where you did it and where this message displays? I'm not sure if it would be obvious for a new person :) |
Sure ! In the enterprise menu, the user write in "shopfront preference" a welcome message for his hub 1. |
Pretty easy to reproduce, just paste a multi-paragraph text like:
and the WYSIWYG will generate a markup with a white background paragraph... |
This seems to be fixed in the latest version of the library, copying and pasting from the editor don't add white strips anymore. However the editor also paste the style of the text, so the example above will still highlight the text because it's inside a code segment (highlighted with a grey background) |
99.9% sure this is closed by #4655. Feel free to reopen if that's not the case. |
@Matt-Yorkley this bug is not fixed as was expected by changing to the home tab. I think we need to strip any background colour formatting that is copied across to the fields. The shop where this is happening is https://openfoodnetwork.org.au/local-produce-ladies/shop#/home |
@daniellemoorhead I think this is already solved. Can you check? |
@mkllnk here's another example of background colour displaying. https://staging.katuma.org/fredo-s-farm-hub/shop#/home I copied text from a google doc that I had highlighted in green and that background highlight colour shows up on the tab. |
Ah, great. I was able to copy that example. When I copy from a document locally it doesn't transfer the background colour. 🤷♀️ Maybe my Linux is just not doing that. |
In a feature branch or master?
This can be merged straight to master 🎉
Description
When copy-pasting from another shopfront or any text file, into the "message when shopfront open/close" (in menu enterprise setting > shop preferences), here is what happens. Some shops have done that apparently and then their shopfront is not looking good.
The text was updated successfully, but these errors were encountered: