-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Support for non-list based structure of the nav used with tabs plugin #31443
Conversation
@rohit2sharma95 feel free to resubmit the PR if it's still valid. Don't take it that we ignore you, it's just that there are periods of time we might not be very responsive. Regardless, I appreciate taking the time to submit a PR, ❤ |
@mdo I'm not sure if we have any limitations coming from the CSS selectors and assuming tests pass we should be OK. @rohit2sharma95 can you add a test case with the new accepted markup too, which would previously fail? |
Thanks, @XhmikosR 👍 |
@XhmikosR and @Johann-S <div class="nav btn-toolbar mb-3" role="tablist">
<div class="btn-group mr-2" role="group">
<a class="nav-link btn btn-secondary active" role="button" data-toggle="tab" href="#home-tab">Home</a>
<a class="nav-link btn btn-secondary" role="button" data-toggle="tab" href="#profile-tab">Profile</a>
</div>
<div class="btn-group" role="group">
<a class="nav-link btn btn-secondary" role="button" data-toggle="tab" href="#contact-tab">Contact</a>
</div>
</div> It is not mentioned in the docs but you need to put either <div class="btn-toolbar mb-3" role="tablist">
<div class="btn-group mr-2" role="group">
<a class="btn btn-secondary active" role="button" data-toggle="tab" href="#home-tab">Home</a>
<a class="btn btn-secondary" role="button" data-toggle="tab" href="#profile-tab">Profile</a>
</div>
<div class="btn-group" role="group">
<a class="btn btn-secondary" role="button" data-toggle="tab" href="#contact-tab">Contact</a>
</div>
</div> There is already an issue about it #31392 |
If you can submit a patch which required no Bootstrap classes do not hesitate it would be a good move 👌 |
1e49db0
to
81b9711
Compare
81b9711
to
449a634
Compare
449a634
to
cfd9b68
Compare
would be good to check this again, as it's been lingering in limbo for a while. @twbs/js-review |
Adding to v5.2.0—would be rad to get some fresh eyes on this again :). |
Closing as stale, and also other markup is supported here already (per our docs right now). |
Find the element with
.active
class directly to support the non-list based structure (Button toolbar) of the nav used with the tabs plugin.Closes #31166 and also closes #31392