[4.0] Align sidebar icon#27156
Conversation
|
FYI, code for rtl is in template-rtl.scss |
| transition: all .3s ease-out; | ||
| .has-arrow { | ||
| .sidebar-item-title { | ||
| margin-right: auto; |
There was a problem hiding this comment.
& [dir=rtl] {
margin-left: auto;
}
this might fix the RTL issue @infograf768 mentioned
|
Looks like the issue is partly which should be |
|
Thank you. Badges fixed. |
|
I have tested this item ✅ successfully on 697f52f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27156. |
|
Will test later. Maybe worth adding all rtl specific overrides in the sidebar.scss as I did already for other rtl stuff in various PRs in the recent weeks. |
|
I propose this patch which includes your changes but moves to _sidebar.scss all main-nav rtl stuff (improved) and deletes it from template-rtl.scss. |
|
@ciar4n Test can be done using the alternate preset. |
|
I have moved the rtl to the sidebar.scss as suggested. Also removed some redundant css. |
|
@ciar4n and similar further Do we need the |
Yes exactly. It avoids having to correct the ltr css in the rtl. Personally I find defining both ltr and rtl a little cleaner and easier to read. It also makes me more rtl aware (which I tend to forget about). Alas I am happy to change it to whichever you prefer? |
|
I have tested this item ✅ successfully on 9166828 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27156. |
|
I like the idea. Cleaner indeed. Rtc. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27156. |
|
Tks! |
|
Thank you for the tests |




Pull Request for Issue #27135 .
Summary of Changes
Moves sidebar icons to using flex. Fixes alignment issue.
Testing Instructions
Apply this patch and run node build.js --compile-css for updating the changed SCSS.
Check sidebar icons are aligned.
Before PR
With PR
Documentation Changes Required