-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add RTL sample images #75
Conversation
mparvazi
commented
May 10, 2022
Questions | Answers |
---|---|
Description? | Add RTL version of sample images and improve image upload. (Redo for #70 ) |
Type? | improvement |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | - |
How to test? | - |
I forget what I did on #70 |
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.
Thanks @mparvazi !
I think you do a very interesting thing but can you explain it?
I see you added RTL versions for the images and enabled the code to use RTL images when using RTL language. What happens for custom images? If I add my own item to the slider how can I provide a RTL and a not-RTL image?
We need to explain this to users 😁 else nobody will use it.
The PS is not responsible for end users who want to add RTL language to shop, These sample images will be used for PS demo (RTL language users thinks PS have problem in RTL for slider in first experience). I just tried to flip current images horizontally to be used in RTL (fast solution), |
Users are able to upload slider images for any language, this PR adds some demo images to RTL languages, to display it properly, that's it 👍 |
@NeOMakinG @mparvazi Is the following scenario possible:
|
The back to scenario: Let's imagine hummingbird is ready to preview for demo This is what RTL language users see: But I think something like this is better: |
hi @mparvazi, it seems that this PR fixes at least 1 issue (PrestaShop/PrestaShop#27777) and add a new behavior when installing the module with an RTL language. Can you be more explicit on what your PR is doing so that the QA team can validate it easier? |
Hi @atomiix For QA:
|
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.
hello @mparvazi,
Thank you for this PR.
Tested on 178x, develop, 80x branches with PHP 7.2 version.
With fresh install and 2 default languages on the shop:
- with classic theme ✅
- add a new slider on one language: no more empty icon on BO & no more blank space on FO on the other language
- add RTL language on the shop on BO
- Generate RTL stylesheet on theme & logo page on BO
- Reset the ps_imageslider module
- Go to FO, refresh the page & choose the RTL language installed: the slider is compatible with RTL language
- with hummingbird theme ✅: same steps except the "Generate RTL stylesheet"
- However, there is a small issue on BO in the ps_imageslider configuration page.
An asterisk is disappeared in front of "Target url" field. The field is still required. Tested with the 3 branches and same result
Thanks
Hello @sLorenzini Please check this PR: #74 After merging that PR, we can leave target URL empty. Thanks. |
Hello @mparvazi, Indeed, the target URL field could be empty with the last merged PR on the module. In that case, your PR is QA approved ✅ . Thank you |
Thanks @mparvazi & @sLorenzini |