-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
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
Use collapse component in docs' sidenav #30230
Conversation
This has the issue I also faced back then, the show/collapse is jaggy, or whatever the proper word is to describe this :P My previous PR #29104 |
@XhmikosR The struggling transitions was due to I chose to make it in |
It's fine, thanks! But do we need the custom JS code to toggle the I remember @mdo not liking the transition there, which was another reason I dropped my PR. |
You were right, I was able to drop the custom JS (and the associated class in markup) by simply using About transition, it's all about the collapse component: I think it's more consistent to keep it, but we should be able to reset it if you decide otherwise. |
You know what, I can dig it. Makes me think that we could also, in another PR, do a docs or dashboard example that uses this same kind of layout and sidebar. We always get folks asking to use pieces of our docs :). |
Hi there, just to let you know: my second child is just born, so don't expect me to work on this until mid-march 👶 |
Congrats @ffoodd! |
Here I am :) From my view, the only remaining question is whether to keep @MartijnCuppens what's your opinion? We may also try to use another class name beside |
@ffoodd, in general classes are used for theming, aria labels for accesibility. I just simplified the styles a little bit. Not sure if we should use a class name for the links. I think we can use the less strict approach here since all links have a lot of styles in common. |
@MartijnCuppens |
I like it! Less code, better for me :) Waiting for @patrickhlauke's, @mdo's and @MartijnCuppens's approval. EDIT: the transition is something we should vote, I can't tell I like it or not, especially for long submenus |
@ffoodd can you rebase this please? |
@XhmikosR Done :) |
I'm going to merge this and we can tweak it further later. |
Did you guys consider using the accordion alternative? At first sight I think it may be more practical and pleasant to use (+ resulting in a less long sidebar ; is it useful to have more than one section expanded at a time?) |
@inwardmovement please make new issues, commenting on old stuff is hard to track. |
Related to #30073, use collapse component in sidebar nav.
Preview: https://deploy-preview-30230--twbs-bootstrap.netlify.com/docs/4.3/getting-started/introduction/