You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, i'm trying to fix all rtl related issues and i came accross a positionning one.. to make it simple here's a portion of code found in resources/sass/spec/utils/layout/helpers/positions.scss
the rights and lefts should logically be inversed in rtl.. therefore, i created a positions.scss file in a newly created /resources/sass/rtl subfolder and imported it in the rtl.scss file, here's(a portion of) its content :
this way, a <div class="r-1"></div> would have a left:1px; css property...
Now here's the issue, the way we import rtl makes it so that we import app.scss as well as rtl.scss
app.scss imports the first positions.scss file(located in resources/sass/spec/utils/layout/helpers/positions.scss)
then rtl.scss imports the newly created positions.scss file(located in /resources/sass/rtl)
Therefore, a <div class="r-1"></div> would have a left:1px(generated by the newly created positions.scss) AND a right:1px; property (generated by the old positions.scss)..
This would lead to many unwanted behaviours in rtl... I hope i made myself as clear as possible
The text was updated successfully, but these errors were encountered:
My proposition is that instead of telling the user to uncomment the rtl line in the head tag.. we should duplicate the files imported in app.scss, change them accordingly for RTL, import the duplicated and changed files to rtl.scss then ask the user to choose between importing app.css or rtl.css. This way we make sure to not have any conflict.
We can even add a configuration variable for rtl and import the rtl.css file only when it's set to true ! It feels(to me at least) more like how it should be done
Well, i'm trying to fix all rtl related issues and i came accross a positionning one.. to make it simple here's a portion of code found in resources/sass/spec/utils/layout/helpers/positions.scss
the rights and lefts should logically be inversed in rtl.. therefore, i created a positions.scss file in a newly created /resources/sass/rtl subfolder and imported it in the rtl.scss file, here's(a portion of) its content :
this way, a
<div class="r-1"></div>
would have aleft:1px;
css property...Now here's the issue, the way we import rtl makes it so that we import app.scss as well as rtl.scss
app.scss imports the first positions.scss file(located in resources/sass/spec/utils/layout/helpers/positions.scss)
then rtl.scss imports the newly created positions.scss file(located in /resources/sass/rtl)
Therefore, a
<div class="r-1"></div>
would have aleft:1px
(generated by the newly created positions.scss) AND aright:1px;
property (generated by the old positions.scss)..This would lead to many unwanted behaviours in rtl... I hope i made myself as clear as possible
The text was updated successfully, but these errors were encountered: