NPM Resource Changed PR-4.3-dev Pending

User tests: Successful: 0 Unsuccessful: 0

avatar brianteeman
brianteeman
7 Aug 2022

This PR is using bootstrap the way that bootstrap intended for it to be used since 5.0 for RTL.

removing any rtl specific code that can be automatically handled by rtlcss or by using rtlcss specific markup (just as bootstrap itself does)

All our current css is doing bootstrap the wrong way for rtl support.

The problem is NOT with our own scss as in general this is now correct with logical properties (The few instances of dir=rtl are now handled by rtlcss)

The problem is with the actual bootstrap code. We are using it without addressing any RTL issues with that. With the exception of a very incomplete set of bootstrap overrides in https://github.com/joomla/joomla-cms/blob/7cf5e1228db337881d7678ad1c71915d5c885150/build/media_source/templates/administrator/atum/scss/vendor/bootstrap/_bootstrap-rtl.scss

Technically this will change all left to right etc so we dont need to use logical properties in our own css however I still think its good practice that we continue to use logical properties where available.

Bootstrap 5 is designed to be post-processed using rtlcss - This takes the generated template.css and converts it to template-rtl.css

Benefits

  • it is DRY
  • we don't need to remember to check it works in rtl (we almost always forget)
  • we dont need to waste time creating rtl overrides (in most cases)
  • fixes numerous open issues
  • replaces numerous open pull requests
  • fixes several issues with input buttons not already on the tracker.

Testing

  1. Apply the pr and then run npm i
    This will generate all the css and install rtlcss

Or

2.Use a prebuuilt package

  1. test test test

Sample Tests

Global configuration in arabic

Before

image

After

image

Add Multi-Factor Authentication

Before

image

After

image

avatar brianteeman brianteeman - open - 7 Aug 2022
avatar brianteeman brianteeman - change - 7 Aug 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2022
Category Repository NPM Change
avatar brianteeman brianteeman - change - 7 Aug 2022
The description was changed
avatar brianteeman brianteeman - edited - 7 Aug 2022
avatar brianteeman brianteeman - change - 7 Aug 2022
Labels Added: NPM Resource Changed ?
00412c2 7 Aug 2022 avatar brianteeman npm
avatar brianteeman brianteeman - change - 7 Aug 2022
The description was changed
avatar brianteeman brianteeman - edited - 7 Aug 2022
avatar brianteeman brianteeman - change - 7 Aug 2022
Title
Bootstrap RTL the correct way WORK IN PROGRESS
Bootstrap RTL the correct way - testable - but help wanted
avatar brianteeman brianteeman - edited - 7 Aug 2022
avatar brianteeman brianteeman - change - 7 Aug 2022
The description was changed
avatar brianteeman brianteeman - edited - 7 Aug 2022
avatar dgrammatiko
dgrammatiko - comment - 7 Aug 2022

With this PR we need to update the build tools. rtlcsss is a postcss plugin that runs on the generated template.css of atum and cassiopeia and after generating the new -rtl.css this needs to be minified as well.

brianteeman#291

avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2022
Category Repository NPM Change JavaScript Repository NPM Change
avatar brianteeman brianteeman - change - 8 Aug 2022
Title
Bootstrap RTL the correct way - testable - but help wanted
Bootstrap RTL the correct way
avatar brianteeman brianteeman - edited - 8 Aug 2022
avatar brianteeman brianteeman - change - 8 Aug 2022
The description was changed
avatar brianteeman brianteeman - edited - 8 Aug 2022
avatar brianteeman
brianteeman - comment - 8 Aug 2022

Thanks @dgrammatiko

avatar brianteeman brianteeman - change - 8 Aug 2022
The description was changed
avatar brianteeman brianteeman - edited - 8 Aug 2022
avatar brianteeman brianteeman - change - 8 Aug 2022
The description was changed
avatar brianteeman brianteeman - edited - 8 Aug 2022
avatar brianteeman
brianteeman - comment - 9 Aug 2022

Thought it was way more work than this.

Well it was 14hours solid so not a small amount - plus dont forget all the PR since you did the first work where I moved our own css to logical properties

avatar wilsonge
wilsonge - comment - 9 Aug 2022

Yeah that makes a lot of sense. Still really nice work though :)

avatar brianteeman
brianteeman - comment - 9 Aug 2022

Thanks

ecbdf3e 10 Aug 2022 avatar brianteeman space
avatar brianteeman
brianteeman - comment - 9 Sep 2022

is there any point in me fixing the conflicts here or is it just going to be ignored like so many pull requests recently?

avatar chmst
chmst - comment - 9 Sep 2022

Your PR's are not ignored .. there are only not enough active testers.

avatar laoneo
laoneo - comment - 9 Sep 2022

This should be rebased to 4.3 anyway.

avatar brianteeman
brianteeman - comment - 9 Sep 2022

its a bug fix not a feature

avatar laoneo
laoneo - comment - 9 Sep 2022

19 changed files and a new package is a too big change for a bug fix release. I welcome the change, but we really need to bring 4.2 into a stable state, so stuff like this needs to go into the next minor. I know we both have different opinions what a bug fix is, but we should start to handle patch releases as such ones and not getting the risk to become unstable again, even when the chance is small. I really hope you understand that point, this here is not a risky one. Again, the change is very welcome but please for 4.3.

avatar joomla-cms-bot joomla-cms-bot - change - 9 Sep 2022
Category Repository NPM Change JavaScript Repository Administration com_banners com_categories com_contact com_content com_cpanel com_fields com_finder com_languages com_media com_menus com_modules com_newsfeeds com_redirect com_tags com_templates com_users
avatar brianteeman
brianteeman - comment - 9 Sep 2022

rebased as requested - of ciurse its now untestable until 4.3 brnch is brought up to date

avatar laoneo
laoneo - comment - 9 Sep 2022

Thanks, merging stuff like this as early as possible brings us more time to iron out regressions, even when the chance is small that there will be one.

avatar brianteeman
brianteeman - comment - 9 Sep 2022

except it cant be tested right now :(

Thanks, merging stuff like this as early as possible brings us more time to iron out regressions, even when the chance is small that there will be one.

I hope this means that pull requests wont wait as RTC for weeks and months before merging any more

avatar laoneo laoneo - change - 10 Sep 2022
Labels Added: PR-4.3-dev
Removed: NPM Resource Changed
avatar joomla-cms-bot joomla-cms-bot - change - 10 Sep 2022
Category Repository Administration com_banners com_categories com_contact com_content com_cpanel com_fields com_finder com_languages com_media com_menus com_modules com_newsfeeds com_redirect com_tags com_templates com_users JavaScript Repository NPM Change
avatar laoneo
laoneo - comment - 10 Sep 2022

Updated the branch, should be back to normal.

avatar brianteeman
brianteeman - comment - 10 Sep 2022

Thanks @laoneo

avatar laoneo
laoneo - comment - 16 Sep 2022

I have tested this item successfully on 4609b33

Tested it with farsi. Did browse around and saw no issue. Installed DPCalendar and created events and so on. All did look ok with RTL.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38412.

avatar laoneo laoneo - test_item - 16 Sep 2022 - Tested successfully
avatar brianteeman
brianteeman - comment - 16 Sep 2022

thanks for testing. dpc was one of the components I developed this with ;)

avatar brianteeman brianteeman - change - 17 Sep 2022
Labels Added: NPM Resource Changed
Removed: ?
avatar obuisard
obuisard - comment - 18 Sep 2022

I have tested this item successfully on 95ba902

I did extensive browsing trying to catch issues.
As a non-rtl reader, I may have missed issues related to rtl that I may not be unaware of, but I honestly think this PR was a great work through.
It would be useful to get a tester using rtl daily.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38412.

avatar obuisard obuisard - test_item - 18 Sep 2022 - Tested successfully
avatar alikon
alikon - comment - 19 Sep 2022

made some tests, but i'm not a RTL user...
...so if we don't get any RTL tester... you can consider this as a valid one

avatar brianteeman
brianteeman - comment - 19 Sep 2022

fyi I use RTL a lot which is why I spent the time making the pr

avatar obuisard
obuisard - comment - 20 Sep 2022

I would like to merge this PR into 4.3 early on. I will merge it tomorrow if there are not any issues by then.
Any objection @chmst @HLeithner ?

avatar brianteeman
brianteeman - comment - 23 Sep 2022

is it tomorrow yet?

avatar obuisard
obuisard - comment - 23 Sep 2022

Was hoping to hear from reviewers...

avatar obuisard obuisard - change - 23 Sep 2022
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-09-23 21:11:38
Closed_By obuisard
avatar obuisard obuisard - close - 23 Sep 2022
avatar obuisard obuisard - merge - 23 Sep 2022
avatar obuisard
obuisard - comment - 23 Sep 2022

Thank you Brian @brianteeman for this needed fix and for keeping track.

Add a Comment

Login with GitHub to post a comment