Skip to content

Update to sidebar toggle styling#4450

Closed
dbhurley wants to merge 3 commits intojoomla:stagingfrom
dbhurley:sidebar-update
Closed

Update to sidebar toggle styling#4450
dbhurley wants to merge 3 commits intojoomla:stagingfrom
dbhurley:sidebar-update

Conversation

@dbhurley
Copy link
Copy Markdown

@dbhurley dbhurley commented Oct 4, 2014

Update to UI and language file naming conventions

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Oct 4, 2014

@dbhurley Is this B/C save? IIRC we can't remove/rename a lang strings in 3.x or i'm wrong here?

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Oct 4, 2014

The sidebar patch was just committed a couple days ago, no release has gone out with the strings.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Oct 4, 2014

ok 👍 sorry yes you are right.

@rvbgnu
Copy link
Copy Markdown
Contributor

rvbgnu commented Oct 4, 2014

@test
I've just noticed this "closing cross" icon while testing another PR, and I was confused. Looking better now, Thanks!
UI Details matters ;-)

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

@roland-d
Copy link
Copy Markdown
Contributor

roland-d commented Oct 4, 2014

@test: Failed. The original icons were chosen because they are agnostic. The problem with the current icons is that they are wrong in RTL languages.

I find the floating arrow kind of weird, having a background like in the original PR made more sense since it was linked to the sidebar items.

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

@dbhurley
Copy link
Copy Markdown
Author

dbhurley commented Oct 4, 2014

I don't know if you can say a test fails because there's a disagreement
over icon usage. ;)

Or because one finds the UI "weird"

However, the proper solution would be an implementation of the reverse
arrows in the rtl template files. This would be the best use case of proper
UI... Not the "hamburger" menu icon which is not representative of an
open/close for secondary navigation or widely recognized as such.

Just my two cents. These icons are worldwide recognized for open/close and
merely need to be updated for the rtl.
On Oct 4, 2014 6:45 PM, "RolandD" notifications@github.com wrote:

@test https://github.com/test: Failed. The original icons were chosen
because they are agnostic. The problem with the current icons is that they
are wrong in RTL languages.

I find the floating arrow kind of weird, having a background like in the
original PR made more sense since it was linked to the sidebar items.

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/4450
http://issues.joomla.org/tracker/joomla-cms/4450.


Reply to this email directly or view it on GitHub
#4450 (comment).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is really no need for div in this, and other declarations, since we're dealing with an ID here. While it is used elsewhere, I'd suggest not using it here and we can clean the others up later.

@roland-d
Copy link
Copy Markdown
Contributor

roland-d commented Oct 4, 2014

Oh the icon disagreement has been there since day 1, I had arrows in the very first design ;) Now I don't care anymore as long as they are correct. Since they are not correct in RTL, that is why I failed the test.

So the usage of the word "weird" is not correct in describing that I dislike the new UI. Then just I don't like the new design.

@betweenbrain
Copy link
Copy Markdown
Contributor

@test

Patch works fine.

When the sidebar is collapsed, the arrow is black / grey when hovered. However, when expanded, it is grey / black when hovered. I'd change it so that is is always black / grey when governed so that it always appears active and is consistent with the other elements.
screenshot - 10042014 - 02 35 14 pm

I'd also suggest it have the same animation as Search tools show/hide.

@dbhurley
Copy link
Copy Markdown
Author

dbhurley commented Oct 4, 2014

Good catch on colors. And yes, I agree about the animation.

I'll update the PR.
On Oct 4, 2014 7:35 PM, "Matt Thomas" notifications@github.com wrote:

@test https://github.com/test

Patch works fine.

When the sidebar is collapsed, the arrow is black / grey when hovered.
However, when expanded, it is grey / black when hovered. I'd change it so
that is is always black / grey when governed so that it always appears
active and is consistent with the other elements.
[image: screenshot - 10042014 - 02 35 14 pm]
https://cloud.githubusercontent.com/assets/634119/4516413/3c1d2dfc-4bf5-11e4-9aba-fcfc0337f9ec.png

I'd also suggest it have the same animation as Search tools show/hide.


Reply to this email directly or view it on GitHub
#4450 (comment).

@infograf768
Copy link
Copy Markdown
Member

This does not make sense in RTL, as Roland says above.

Open
screen shot 2014-10-05 at 07 01 14

Close
screen shot 2014-10-05 at 07 01 53

We could use the correct arrows if we can check the language direction in the js

@roland-d roland-d mentioned this pull request Oct 5, 2014
@dbhurley
Copy link
Copy Markdown
Author

dbhurley commented Oct 5, 2014

Updated for language direction in javascript. However I noticed this has bad styling as we are using bootstrap span classes directly within a bootstrap span. We need to have a boostrap row class prior to implementing spans otherwise the spacing is off. (You can see this by expanding/collapsing the sidebar and viewing the right side of the main column). This will need to be fixed before I would consider this functionality ready for production.

@cyrez
Copy link
Copy Markdown
Contributor

cyrez commented Oct 5, 2014

I agree that this functionality is not ready for production. (and that #4197 was not completely improved)
@dbhurley About the "hamburger" menu icon, i've proposed this one as generally used to open/hide a menu as a conventional used icon for this purpose. But, usage of arrows, with RTL/LTR switch as you have propose is a nice idea, if design gives a real slide sidebar effect. This is maybe what could be improved now IMHO.
In all cases, this feature is a good initiative from @roland-d and i'm happy to see many people invested to help this purpose! 👍

@roland-d
Copy link
Copy Markdown
Contributor

roland-d commented Oct 5, 2014

I am just surprised these comments were not made on the original PR. Why even merge it?

@dgrammatiko
Copy link
Copy Markdown
Contributor

@roland-d If you are referring to my comment I have to say that I’ve always supported the idea of vanilla js in core.js: #4197 (comment)

@phproberto
Copy link
Copy Markdown
Contributor

@roland-d I merged it because it's something useful that (as I said in your PR) people will improve. I think it's globally a good code and a great feature.

I agree with @dbhurley in the span classes (as I mentioned in your PR). We should use a standard class that is mapped in the less files to the span.

Let's contribute all the fixes here 💃

@cyrez
Copy link
Copy Markdown
Contributor

cyrez commented Oct 8, 2014

Am i the only one, using com_patchtester, who #4450 request me to have togglesidebar.php already in place, but if i apply #4197 with this file, after, i can't apply 4450 because of a language file already changed ?!?...
Just a question, if there's a solution to speed up my testing... ;-)

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Oct 8, 2014

@JoomliC you can install the current 3.3.7 branche see: http://developer.joomla.org/cms-packages/ and after this apply this PR via com_patchtester.

@810
Copy link
Copy Markdown
Contributor

810 commented Oct 9, 2014

index.php?option=com_cache&view=purge

needs to be fixed

@cyrez
Copy link
Copy Markdown
Contributor

cyrez commented Oct 9, 2014

@zero-24 thank you! Yes, this patch needs to be in 3.3.7-dev to apply with com_patchtester
@810 What did you mean ?

@dbhurley i've tested design about background, and yes, better when simpler! ;-)
I'm still convinced that a slide effect would give improvement, but after a reflexion on the UX, i wonder now why header (for toolbar buttons) is in the admin template, and so loaded before content, and the sidebar in component view, and loaded after toolbar, and so, inside main content...
Isn't sidebar the place mainly used as sub-menus ?
Couldn't it be simpler if the sidebar is moved to the admin template, and so not included in the content (more logical, no?)

Note: My test is mainly done on mobile device, and i think it's a good way to see what is the most logical...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix responsive floating of the sidebar (content moves down on tablet device)

#j-sidebar-container {
    margin-right: 0;
}

@810
Copy link
Copy Markdown
Contributor

810 commented Oct 10, 2014

@JoomliC Sorry I saw a conflict with collapsing the sidebar. But was a browser cache issue. Now it works perfectly

@test
+1

@b2z
Copy link
Copy Markdown
Member

b2z commented Oct 11, 2014

Like it! @test OK

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

@infograf768
Copy link
Copy Markdown
Member

Nope. Please read above: #4450 (comment)
there are still some issues

@infograf768
Copy link
Copy Markdown
Member

#4450 (comment)

Has to be also done in isis template_rtl.less

@infograf768
Copy link
Copy Markdown
Member

We also have an issue in RTL for this PR when hiding sidebar:
screen shot 2014-10-16 at 11 31 47

@brianteeman
Copy link
Copy Markdown
Contributor

@dbhurley can you look at the RTL issues please. I am resetting the tests to zero again so that we only count new tests AFTER the RTL issues in this PR have been resolved.

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

@tairedweb
Copy link
Copy Markdown

@test success +1

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

@infograf768
Copy link
Copy Markdown
Member

You can't say it is a success, as stated above... We have at least 3 issues

@tairedweb
Copy link
Copy Markdown

it meaning i love this :D

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

@mrunalpittalia
Copy link
Copy Markdown

Moving to RTC state as having more than 2 successful tests

@roland-d
Copy link
Copy Markdown
Contributor

As stated by @infograf768 it can't go to RTC, there are issues to be fixed.

@infograf768
Copy link
Copy Markdown
Member

In the mean while, I am now correcting to
#j-sidebar-container {
margin-right: 0;
}
as it is gets really bothersome to test stuff.
490c610

@cyrez
Copy link
Copy Markdown
Contributor

cyrez commented Oct 21, 2014

Just to give a possible little improvement, based on previous comments (#4197 (comment), #4197 (comment) ... )

This is a test (and would need improvements), with less code changes, using Bootstrap that does a much smoother expand/collapse.
(video with a "big" button, but could be achieved with the arrows as well)

https://www.youtube.com/watch?v=ErMILVuPneA&feature=youtu.be

Cyril

@roland-d
Copy link
Copy Markdown
Contributor

@JoomliC Had a look at the video but still unsure about a few things:

  • The video has no view that uses filters
  • The video has no view that uses no search bar (thus the button uses extra screen space)

I do like the way the sidebar looks though, I don't think we need a textual button. There are enough images that can be used so people know what it does.

@cyrez
Copy link
Copy Markdown
Contributor

cyrez commented Nov 10, 2014

Hi @roland-d, sorry for slow response...
Hope you enjoy your last hours in Cancun ;-)

So, i've improved the design, with icons, and i have recorded a longer video, with different view (filters, no search tools bar...)
All feedback are welcome!

Video preview: https://www.youtube.com/watch?v=PF8zRRTSD_A

Screenshots open/close:
j-toggle-sidebar

And if welcome, should i open a new PR ?
Note that i've not yet worked on mobile devices and on RTL language, as it's just a test for the moment, but I can do this next week! ;-)

@roland-d
Copy link
Copy Markdown
Contributor

@JoomliC Thanks, Cancun was a lot of fun. So I looked at the video and I do like what I see. We will require a new PR for that since you can't change this one. @dbhurley seems to have left it for what it is for now. This PR does no longer patch either. I would suggest a new PR is created and this one closed, so we can continue working on that and get it merged. OK for you David?

I wonder if issue joomla-projects/com_localise#233 is still a problem then.

@dgrammatiko
Copy link
Copy Markdown
Contributor

@roland-d Roland congrats for your new role! 👍

@roland-d
Copy link
Copy Markdown
Contributor

Thank you @DGT41

@infograf768
Copy link
Copy Markdown
Member

@roland-d @JoomliC
In com_localise I have overriden the sidebar/submenu layout to take in account this PR here.

<div class="toggle-sidebar">
    <?php if (JFile::exists(JPATH_ROOT . '/layouts/joomla/searchtools/default/togglesidebar.php')) : ?>
        <?php echo JLayoutHelper::render('joomla.searchtools.default.togglesidebar'); ?>
    <?php else : ?>
        <?php echo JLayoutHelper::render('joomla.sidebars.toggle'); ?>
    <?php endif; ?>
</div>

Therefore any PR that will be consistent with these layouts path and names should be OK.

The matter of the 2 closing divs I took off there is linked to the fact that our filters are not displayed through JHtmlSidebar::addFilter()

@cyrez
Copy link
Copy Markdown
Contributor

cyrez commented Nov 18, 2014

@roland-d and @dbhurley, yes i can open a new PR, maybe tomorrow.
I've improved the code this week-end, and i have added RTL behaviour.

@infograf768 I'm using the same layout as defined by @dbhurley : joomla.sidebars.toggle
So, it may not give issue with com_localise
And should work with joomla-projects/com_localise#233 (to be tested)

So, keep you inform when the new PR will be ready (in 1 or 2 days)

Cyril

@dgrammatiko
Copy link
Copy Markdown
Contributor

@JoomliC Hint: #5078 this was a response to the issue #5066. Maybe you can incorporate the code to your implementation? The idea here to have the sidebar viewable in smaller screens

@roland-d
Copy link
Copy Markdown
Contributor

@DGT41 Thanks for that info. It would be good if @JoomliC could implement that as well. So we have a single PR to handle the sidebar. Once we have the new PR, we can close this one and #5078 to have a single point of work. Thanks guys.

@infograf768
Copy link
Copy Markdown
Member

Folks, don't want to hurry you but it would be good if we get this before 3.4.0 beta (release date unknown, but normally soon)

@jissues-bot
Copy link
Copy Markdown

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/4450

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Nov 19, 2014

closing for the new PR: #5141

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

@cyrez
Copy link
Copy Markdown
Contributor

cyrez commented Nov 19, 2014

Yes, new PR is ready : #5141

Thanks @zero-24

@DGT41 and @roland-d : #5078 is not anymore needed in new PR, as use of media query to keep sidebar as it is on 3.3.6 on small devices ;-)

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Nov 19, 2014

@JoomliC

@DGT41 and @roland-d : #5078 is not anymore needed in new PR, as use of media query to keep sidebar as it is on 3.3.6 on small devices ;-)

Closed 👍 Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.