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

navbar - Pills with dropdowns - dividers have inconsistent thickness if multiple dividers are present #35616

Closed
3 tasks done
igorwolford opened this issue Dec 28, 2021 · 6 comments · Fixed by #35491
Closed
3 tasks done

Comments

@igorwolford
Copy link

Prerequisites

Describe the issue

When multiple dividers are used in navbar pill dropdowns, first divider is 3px thick, the rest are 2px. Inconsistent styling.

screenshot

Reduced test cases

Code taken right out of code samples, added additional dividers
https://getbootstrap.com/docs/5.0/components/navs-tabs/#pills-with-dropdowns

https://codepen.io/iwolford/pen/XWeVwNr

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v.5.0

@folknor
Copy link

folknor commented Dec 29, 2021

Hi! Do you mind dragging and dropping the screenshot directly into the github comment text box? imgur is blocked on my network, and even if it wasn't I don't trust them. Thank you!

EDIT: Also, you can paste code in github comments https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting

@igorwolford
Copy link
Author

igorwolford commented Jan 2, 2022

<ul class="nav nav-pills">
  <li class="nav-item">
    <a class="nav-link active" aria-current="page" href="#">Active</a>
  </li>
  <li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">Dropdown</a>
    <ul class="dropdown-menu">
      <li><a class="dropdown-item" href="#">Action</a></li>
      <li><a class="dropdown-item" href="#">Another action</a></li>
      <li><a class="dropdown-item" href="#">Something else here</a></li>
      <li><hr class="dropdown-divider"></li>
      <li><a class="dropdown-item" href="#">Separated link</a></li>
      <li><hr class="dropdown-divider"></li>
      <li><a class="dropdown-item" href="#">Separated link</a></li>
      <li><hr class="dropdown-divider"></li>
      <li><a class="dropdown-item" href="#">Separated link</a></li> 
    </ul>
  </li>
  <li class="nav-item">
    <a class="nav-link" href="#">Link</a>
  </li>
  <li class="nav-item">
    <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
  </li>
</ul>

divider

@florianlacreuse
Copy link
Contributor

On my side it only happens when the page is zoomed in. What is your zoom level? 100%?

@florianlacreuse
Copy link
Contributor

May be related to #34374.

@igorwolford
Copy link
Author

I confirm my display settings are at 125% Scale (recommended and default setting on my Windows laptop). So it does look like a duplicate of the one you posted above. Thank you!

@mdo
Copy link
Member

mdo commented Feb 10, 2022

Duplicate of #34374 indeed. Closing for that issue :). Will be shipping a fix in v5.2.0.

@mdo mdo closed this as completed Feb 10, 2022
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

Successfully merging a pull request may close this issue.

4 participants