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

Nav Tabs Checkbox example #30339

Closed
arthurshlain opened this issue Mar 5, 2020 · 3 comments
Closed

Nav Tabs Checkbox example #30339

arthurshlain opened this issue Mar 5, 2020 · 3 comments

Comments

@arthurshlain
Copy link

arthurshlain commented Mar 5, 2020

Just an example of Bootstrap 4+ use case.

<ul class="nav nav-tabs">
  <li class="nav-item">
    <a class="nav-link active" href="#">Compare 1</a>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Compare 2</a>
  </li>
  <li class="nav-item">
    <div class="nav-link position-relative">
      <div class="form-check position-static">
        <input class="form-check-input" type="checkbox" value="" id="defaultCheck1">
        <label class="form-check-label stretched-link" for="defaultCheck1">
        Show only different properties
        </label>
      </div>
    </div>
  </li>
</ul>

image

Red background added to show clickable area:
image

This example can be expanded with collapse elements in content (JavaScript behavior).

I think checkboxes now works good with collapse? #22272

@ysds
Copy link
Member

ysds commented Mar 5, 2020

Sorry, but we cannot help with how-to or general troubleshooting issues here; only bug reports and feature requests. You'll want to ask around in the official Slack team or Stack Overflow. See our readme for more details.

If you think that is a bug, bug reports must include a live reduced test case via CodePen/JS Bin or Stackblitz. And report specific browser and OS details.

@arthurshlain
Copy link
Author

arthurshlain commented Mar 5, 2020

I don't need help with it, it's example of use. The stretched-link class can be used with checkboxes inside tabs.

@ysds
Copy link
Member

ysds commented Mar 5, 2020

Thanks for the example :)

@ysds ysds closed this as completed Mar 5, 2020
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

No branches or pull requests

2 participants