Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ffoodd
Copy link
Member

@ffoodd ffoodd commented Feb 26, 2021

Fixes #33196

Wrapping in .nav-item is required since using .nav-pill with buttons as direct children works fine and wouldn't anymore if those buttons got width: 100%.


Initial test case: https://codepen.io/Kramb/pen/VwmyYLq?editors=1100
This PR one: https://codepen.io/ffoodd/pen/wvoydpe?editors=1000

@ffoodd ffoodd requested a review from a team as a code owner February 26, 2021 11:00
Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick test to confirm .nav-links without the parent .nav-item work as expected without this fix, so this looks good! (Demo for posterity: https://codepen.io/emdeoh/pen/OJbQrzK?editors=1100)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button-based navs not growing with fill/justified
3 participants