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

Buttons should grow in nav-fill & nav-justified #33213

Merged
merged 2 commits into from
Mar 1, 2021

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