-
Notifications
You must be signed in to change notification settings - Fork 6
[RFC] RTL testing #166
Comments
@andrepereiradasilva @brianteeman reading @C-Lodder 's comment's in the UX group, that will come later on when BS is beta or RC |
ok ok. just warning about this |
Yup, dont worry, it will be added but I can't add it until a later date. Bare in mind that BS4 won't officially suport RTL, so I'm going to use the code from a closed PR or write it myself. |
Really? Bs4 is ignoring RTL. Shocked!
|
Ok turns out they will welcome PR's for it, but once it's stable: |
If you do it right or somewhat similar to what I did for the |
@mbabker what i mean is isis duplicate all css code in template_rtl.css which IMHO we could do better. you have several strategies for this, each with advantages and disavantages:
I don't know how joomla.org does it, since i cannot change it to a RTL language (where is the select language button? - or do i need to change the browser language to see it ...?). |
https://downloads.joomla.org and https://www.joomla.org/3 both support a RTL language (sadly most of the other sites are barely English only). Or view https://www.joomla.org/templates/joomla/css/template-rtl.css for the uncompressed CSS file. With HTTP2 the preference seems to be more for the multiple file approach. |
so joomla.org uses the isis strategy... yes, HTTP2 uses multiplexing. |
We aren't duplicating anything in the RTL CSS, everything there is overriding the base styles. And it all depends how you look at it. IMO each ways are fine, it boils down to preference. You can have an if/else to load a single Or you can have a conditional extra CSS for RTL specific overrides. Or you can include all the RTL CSS into the main @andrepereiradasilva I added you to https://github.com/joomla/jdotorgtemplate so you can see all the LESS files. I in essence forked the BS2 stuff, removed anything I didn't need to override, and have a lot of "reset" type declarations in there to get the RTL stuff to display correctly. This isn't very efficient as it's adding a lot of extra CSS you can potentially avoid. So the first option is really the cleanest but probably requires the most upkeep. |
We're using SCSS so we simply need an No need to have 2 HTTP requests or load the RTL code in the primary CSS file even though user's may not need it. |
As long is easy to mantain 😉 i have no issue with that. |
Charlie you have access to that repo too, so you can see what I went through for "proper" RTL just with core BS2. I still don't know how I'm maintaining a template but |
@andrepereiradasilva - Maintaining styling will require Node + Ruby. I'll write up the documentation but people will have to be prepared for this change. @mbabker - I can imagine the trial and error process was tedious |
Node + Ruby ? |
Node JS.......Yes, cause we're using SCSS. I'm not going to leave SCSS compiling down to anything other than NPM packages for production. Ruby is then used for the SCSS linting We also use NPM for vendor libraries and minifying. |
so, let me see if i understand this: a simple contributor wants to contribute changing a few lines of css
I understand what you guys are doing, but do you guys really think this is reasonable? I speak for me also 😉 , i never worked with node or ruby, neither ever installed it. |
As long as folks can help with that it's fine. The PHP compilers have too Also consider even today you can't just make a CSS change via GitHub alone. On Tue, Nov 15, 2016 at 8:39 AM andrepereiradasilva <
|
Yes, i know that. That's why i'm saying that can cause a barrier on contributions on this, but if you guys think it's ok... |
probably not, but is it possible for travis or some robots to do that compilation on-the-fly when PR are submited? |
Yes, that's correct and for me, that's reasonable. People don't even use the LESS files correctly in J3.x, nevermind CSS. The current LESS files just make me want to burst our in tears sometimes, they're that bad. Using Node and Ruby allows:
As mentioned, I will write up a documentation page explaining everything, step by step. If the steps are followed properly, it will be easy. Even now in J3.x, the |
@C-Lodder as said i understand WHY you do this. But please read my comment above
I mean can't we make travis compile the stuff when checking PR? This way you only would need to change css and js original files, the rest would be auto compiled. |
That would mean if a user want to make some CSS changes, they need to use an alternative to compile locally when testing. Travis compiler will be different to the local compiler. As Babker said, the PHP compiles have lots of issues. No idea if Travis supports SCSS compiling though. Either way, Node is used for other things, not just the SCSS |
Yes we can have CI compile the stuff on the fly but our CI (either Travis or Jenkins) would have to be smart enough to be able to pull the branch, run the compiler, and push back to it if it detects a file difference. We can't make the CI take the CSS changes and merge them back to SCSS, a user has to edit the right file(s) for it to work. Yes, it might be an extra barrier to contribution, but either we can do things right or do things easy with broken tooling. 3.x already has broken tooling and makes it semi-easy. |
don't misunderstood me, i'm 100% in favour of consistency and error prone code as you may notice from my PRs. i'm making a little the devil advocat part here 😉 i just want to point out that issue. if we, somehow, could make it automatticly it would be easier for everyone and easier to mantain too. |
When I initialy suggested this, I think people seemed to be under the impression it was only supposed to be used for those controbuting towards the Joomla core. However this will also be used for template providers. It will allow people to add their own SCSS to a |
Done on main repo joomla/joomla-cms#16593 |
is this template being tested in RTL languages?
The text was updated successfully, but these errors were encountered: