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-underline jumps when navigating #41062

Open
3 tasks done
xvaara opened this issue Nov 26, 2024 · 1 comment
Open
3 tasks done

.nav-underline jumps when navigating #41062

xvaara opened this issue Nov 26, 2024 · 1 comment

Comments

@xvaara
Copy link

xvaara commented Nov 26, 2024

Prerequisites

Describe the issue

.nav-underline .active has font-weight: 700; which causes the navigation to jump around when swiching active

Reduced test cases

https://stackblitz.com/edit/rd28tu?file=index.html

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

Windows, macOS, Android, iOS, Linux

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

Chrome, Safari, Firefox, Microsoft Edge, Opera

What version of Bootstrap are you using?

5.3.3

@antoinevilain001
Copy link

Hi, gave this a quick shot and it does seem like removing the font-weight on active makes it look a lot worse (active link does not really stand out with just the underline and colour change). I would imagine that to fix this problem we would want navbar item spacing to be done in such a way that bolding one element keeps the spacing of the others constant, which seems like a slightly more involved change.
image

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