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-pills links - wrong nesting in nav.scss #24307

Closed
Kopyov opened this issue Oct 9, 2017 · 4 comments
Closed

.nav-pills links - wrong nesting in nav.scss #24307

Kopyov opened this issue Oct 9, 2017 · 4 comments
Assignees
Labels

Comments

@Kopyov
Copy link
Contributor

Kopyov commented Oct 9, 2017

In tabs we have correct nesting logic:

.nav-tabs {
    .nav-link.active,
    .nav-item.show .nav-link {
        ...
    }
}

But in .nav-pills it's incorrect:

.nav-pills {
    .nav-link {
        &.active,
        .show > & {
            ...
        }
    }
}

Basically .show > & means .show > .nav-pills .nav-link, but should be .nav-pills .show > .nav-link

@Johann-S
Copy link
Member

Johann-S commented Oct 9, 2017

It seems related to our v4, is that true @Kopyov ?

@Kopyov
Copy link
Contributor Author

Kopyov commented Oct 9, 2017

Yes, that is correct - in Beta. Sorry didn't mention it

@XhmikosR
Copy link
Member

XhmikosR commented Oct 9, 2017

I think this was changed recently here #22513

@andresgalante
Copy link
Collaborator

@Kopyov thanks for reporting it, @XhmikosR is right, it was fixed: https://github.com/twbs/bootstrap/blob/v4-dev/scss/_nav.scss#L80

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

No branches or pull requests

4 participants