This patch adds some missing RTL adjustments for the umami demo.

You can easily change your own site to RTL for testing by installing the language module and setting the text direction there

1. .read-more__link
arrow needs to be reversed and to be placed left instead of right
core\profiles\demo_umami\themes\umami\css\components\navigation\more-link\more-link.css

2. Recipe Collections
list items text should be aligned right
core\profiles\demo_umami\themes\umami\css\components\blocks\recipe-collections\recipe-collections.css

3. Footer
Text should be aligned right
core\profiles\demo_umami\themes\umami\css\components\regions\footer\footer.css

4. Copyright and Disclaimer
Text should be aligned right
core\profiles\demo_umami\themes\umami\css\components\blocks\disclaimer\disclaimer.css

5. Toolbar Warning in admin
Icon should be on the right

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Not Real created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, rtl-css-umami-changes.patch, failed testing. View results

Not Real’s picture

Fix whitespaces

John Cook’s picture

Status: Needs work » Needs review
pawandubey’s picture

@Not Real

The patch works fine for me and attached is the screenshot for the same.

Meanwhile, I just re-rolled the patch to fix the end line issue as per coding standards.

shaal’s picture

I based my changes on #5 patch.
in RTL - Disclaimer section, disclaimer paragraph should be on the right, and copyright section should be on the left.

Eli-T’s picture

Status: Needs review » Needs work

Thanks for updating this issue. However it looks like this patch touches things outside Umami's CSS,for example core/lib/Drupal/Core/Database/Query/AlterableInterface.php.

shaal’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
4.67 KB
5.04 KB
1.3 MB
661.18 KB
999.93 KB

Yikes. I think these were some rookie mistakes... sorry about that.

I updated the patch by removing unrelated code changes and added additional /* LTR */ inline comments as required by CSS formatting guidelines.

Homepage RTL screenshot:
umami-RTL-homepage

Articles RTL screenshot:
umami-RTL-articles

Recipes RTL screenshot:
umami-RTL-recipes.jpg

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

kjay’s picture

Patch required reroll (see attached).

Patch tested and looks good in relation to addressing the points raised in the issue summary.

smaz’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
54.53 KB
24.49 KB
84.57 KB
81.4 KB
448.84 KB
444.91 KB
55.02 KB
46.71 KB
15.23 KB
15.25 KB

Tested: Patch applies cleanly, code looks ok & styles work as expected - all issues in the issue summary have been taken care of.

1. .read-more__link: arrow needs to be reversed and to be placed left instead of right
Before:
view recipe link - before

After:
view recipe link - after

2. Recipe Collections: list items text should be aligned right
Before:
recipe collections - before

After:
recipe collections - after

3. Footer: Text should be aligned right
Before:
footer text - before

After:
footer text - after

4. Copyright and Disclaimer: Text should be aligned right
Before:
copyright / disclaimer - before

After:
copyright / disclaimer - after

5. Toolbar Warning in admin: Icon should be on the right
Before:
admin toolbar icon - before

After:
admin toolbar icon - after

  • Gábor Hojtsy committed e610f4e on 8.8.x
    Issue #3028771 by shaal, Not Real, pawandubey, kjay, smaz, Eli-T: Add...

  • Gábor Hojtsy committed 303ea60 on 8.7.x
    Issue #3028771 by shaal, Not Real, pawandubey, kjay, smaz, Eli-T: Add...
Gábor Hojtsy’s picture

Version: 8.8.x-dev » 8.7.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.