Openfoodnetwork: [mobile ux] Copy-paste in shopfront message display strange white strips

Created on 26 Sep 2017  路  9Comments  路  Source: openfoodfoundation/openfoodnetwork

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.

bug

bug-s5 good first issue hackathon

All 9 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.
He creates another hub and wants to use the same welcome message. So he copies/pastes the welcome message from hub 1 to hub 2. He saves and go on the hub 2 shopfront, he sees the image above so the white strips below the text.
He is surprised so he goes back to the hub 2 menu and delete the message and retype it, but it doesn't change anything, still the white strips.
Hope it's clear enough, if any question come back to me :-)

Pretty easy to reproduce, just paste a multi-paragraph text like:

paragraph1

paragraph2

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.

Screen Shot 2020-02-07 at 2 12 01 pm

@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. :woman_shrugging: Maybe my Linux is just not doing that.

Was this page helpful?
0 / 5 - 0 ratings