? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
2 Feb 2021

It's 2021 and we really should be using css and not spaces for layout. This example PR is for the language layout and replaces the hard coded space with the correct css class of me-1. (because of the new BS5 classes this is RTL aware)

image

If accepted there are plenty of places to update

avatar brianteeman brianteeman - open - 2 Feb 2021
avatar brianteeman brianteeman - change - 2 Feb 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2021
Category Layout
avatar brianteeman brianteeman - change - 2 Feb 2021
The description was changed
avatar brianteeman brianteeman - edited - 2 Feb 2021
avatar wilsonge
wilsonge - comment - 2 Feb 2021

@ciar4n can I get your steer on this please. I don’t have enough understanding of pros/cons to make an informed enough decision

avatar brianteeman
brianteeman - comment - 2 Feb 2021

The only reason I can think of for why the space was misused for layout was that prior to bootstrap 5 it would have needed different classes for LTR and RTL

avatar ciar4n
ciar4n - comment - 3 Feb 2021

@wilsonge This looks ok to me. Best to avoid hardcoded spaces for spacing items.

On a side note, afaik we are not loading BS5's bootstrap.rtl.css but the changes in #32166 cover this in RTL.

avatar brianteeman
brianteeman - comment - 3 Feb 2021

Thanks @ciar4n it looks like it was just done to avoid using css as the majority of instances of using a space for layout are all related

avatar wilsonge
wilsonge - comment - 3 Feb 2021

Then go for it

avatar brianteeman
brianteeman - comment - 3 Feb 2021

I will do when I get the opportunity. Doesnt hold back the merge of this PR

avatar infograf768 infograf768 - test_item - 3 Feb 2021 - Tested successfully
avatar infograf768
infograf768 - comment - 3 Feb 2021

I have tested this item successfully on 2ba5ac9


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

avatar infograf768
infograf768 - comment - 3 Feb 2021

Note while testing this in RTL:
I remarked the same problem as #32231 in many list where the width of some columns depends on the length of the title of the column. It is specially obvious when one uses Persian language.

Screen Shot 2021-02-03 at 12 14 36

Screen Shot 2021-02-03 at 12 15 00

Any volunteer to make general PR?

PS: Yes, I know it is unrelated to this PR.

avatar Quy Quy - test_item - 3 Feb 2021 - Tested successfully
avatar Quy
Quy - comment - 3 Feb 2021

I have tested this item successfully on 2ba5ac9


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

avatar Quy Quy - change - 3 Feb 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 3 Feb 2021

RTC


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

avatar drmenzelit drmenzelit - close - 3 Feb 2021
avatar drmenzelit drmenzelit - merge - 3 Feb 2021
avatar drmenzelit drmenzelit - change - 3 Feb 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-02-03 14:39:23
Closed_By drmenzelit
Labels Added: ? ?
avatar drmenzelit
drmenzelit - comment - 3 Feb 2021

Thanks

avatar brianteeman
brianteeman - comment - 3 Feb 2021

thank you

Add a Comment

Login with GitHub to post a comment