Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC 14 app navigation design: active class and nested lists #11272

Closed
marcelklehr opened this issue Sep 18, 2018 · 9 comments
Closed

NC 14 app navigation design: active class and nested lists #11272

marcelklehr opened this issue Sep 18, 2018 · 9 comments
Labels
bug design Design, UI, UX, etc. needs info

Comments

@marcelklehr
Copy link
Member

Perhaps I'm doing something wrong, perhaps the .active class is no longer supported, but when hovering over a a nested item with an active class, this happens:

screenshot from 2018-09-18 23-07-56

@marcelklehr
Copy link
Member Author

Also note that the nested entries are actually 57px in height, instead of 44px like the rest.

@nextcloud-bot nextcloud-bot added bug design Design, UI, UX, etc. labels Sep 18, 2018
@nextcloud-bot

This comment has been minimized.

@weeman1337
Copy link
Member

@marcelklehr it's only inside the bookmarks app, right?

For me it's working with the NC14 release and bookmarks 0.13.0:
image

Could you please check whether there is an update for the bookmarks app available for you?

@marcelklehr
Copy link
Member Author

I'm a maintainer of the bookmarks app and was working on a new feature when I discovered this. :)

@weeman1337
Copy link
Member

@marcelklehr oh okay :) Which version of the bookmarks app are you using then?

@marcelklehr
Copy link
Member Author

marcelklehr commented Sep 20, 2018

I haven't pushed the code, yet. But basically it looks like this:

<ul>
<li class="collapsible open active">
<a href="#" class="icon-tag" title="tags">tags</a>
<ul>
   <li class="active" id="bar">
   <a href="#" title="bar">bar</a>
   </li>
   <li id="baz">
   <a href="#" title="baz">baz</a>
   </li>
</ul>
</li>
</ul>

I was able to find the cause of the faulty height, now. I had added a span inside the a tags.

The only problem left now, is that it's nearly impossible to tell, which sub item of "tags" is active, because (as seen in the screenshots below) the active ribbons for the parent and the sub item overlap

screenshot from 2018-09-20 22-32-49

In case the active class is removed from the parent menu item to remedy this, the hover effect for the child item becomes sub-optimal:
screenshot from 2018-09-18 23-07-56

(Note, the grey background is an artifact specific to the bookmarks app.)

@weeman1337
Copy link
Member

@marcelklehr I would be happy to help. If you push a branch I can have a look.

Otherwise you may look at the files app where everything is working.

@marcelklehr
Copy link
Member Author

The files app doesn't have nested navigation, afaik, but here's the pull request with the nested navigation nextcloud/bookmarks#560 :)

@marcelklehr
Copy link
Member Author

I guess this can be closed, now, as I opted to add the active class to all items that have the open class, so this is no longer a problem for me. I'm not sure if this solution is what was originally intended but it works for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug design Design, UI, UX, etc. needs info
Projects
None yet
Development

No branches or pull requests

3 participants