-
Notifications
You must be signed in to change notification settings - Fork 88
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
Put the children of AppNavigationItem outside of the main item #2572
Put the children of AppNavigationItem outside of the main item #2572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In principle, I like this idea (the grey hover background of the parent on the left of the child always bothered me), but the changes currently create invalid HTML.
The li
tag has no ul
parent (which it has to have) and one of it's siblings is an ul
, which is not allowed, see https://html.spec.whatwg.org/#the-ul-element.
So please change it so that li
s always have an ul
parent and only li
siblings.
fcbc460
to
edd9785
Compare
i have only rebased it so far, till i understand a bit better Raimunds perspective :) |
i finally managed to link my nc/vue with an app and tested this on mail with my new changes and it doesnt work :( |
I fixed one issue, but I can only look at the netlify docs at the moment, and they seem busy. @GretaD Maybe you can give it another try with mail? |
43354b5
to
3e202d4
Compare
yes, it works, many thanks @raimund-schluessler |
@raimund-schluessler can you please sign off your commits? DCO is not passing |
Just squash them into yours. My changes were negligible (and I only have the webinterface at hand right now). |
yes, right, i can do that |
In the current implementation, a side effect is that it disables the ability to pass class="active" directly to the AppNavigationItem. Signed-off-by: Quentin Guidée <[email protected]> Update src/components/AppNavigationItem/AppNavigationItem.vue Update src/components/AppNavigationItem/AppNavigationItem.vue
3e202d4
to
3afa288
Compare
There is some more (CSS) stuff that needs fixing/adjustments. I will have a look and push some commits, if that is ok with you @GretaD. |
Signed-off-by: Raimund Schlüßler <[email protected]>
Signed-off-by: Raimund Schlüßler <[email protected]>
6d185a0
to
c85aa53
Compare
There seems to be an issue with the netlify docs when the branch is from a different repository. I have no idea why, but opening #2704 triggered the docs build and now the docs preview links to the build for #2704. I am hence closing this PR #2572 in favor of #2704. I hope that's fine with everyone. |
This change is necessary for #2571 (see why in action: #2571 (comment)). It puts AppNavigationItem's children out of the parent item, and displays them separately. This is the simplest implementation I found without recoding the entire AppNavigationItem. I'm open to ideas if you find something cleaner.
before.mov
after.mov
Important notes/questions to reviewers
In the current implementation, a side effect is that it disables the ability to pass (like in the doc)
class="active"
directly to the AppNavigationItem. It seems like the only purpose of passing theclass="active"
directly is only for the example? TheisActive
property works fine and continues to push the blue background.As another side effect of this PR, when hovering a child, it doesn't display the hover background of the parent (as demonstrated in the screenshots). I can go back to the first one easily if needed. Just unsure if it was a bug or not.