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

Fix navbar-burger color when color modifier is used #1982

Merged
merged 2 commits into from
Oct 2, 2018
Merged

Fix navbar-burger color when color modifier is used #1982

merged 2 commits into from
Oct 2, 2018

Conversation

corneliusludmann
Copy link
Contributor

When using a color modifier for a navbar (e.g., is-dark) the burger icon does not change the color. This commit adds the color modification for the navbar burger icon.

This is a bugfix.
Issue #1981.

Proposed solution

This solution adds color-invert for the .navbar-burger for the color modifiers the same way it is done for .navbar-link.

Tradeoffs

No tradeoffs.

Testing Done

I checkout out master and changed the lines. The color of the burger icon is as desired. You can see a minimal example I used there: https://jsfiddle.net/pm26zwer/6/

See also issue #1981.

@@ -74,6 +74,8 @@ $navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
.navbar-link
&::after
border-color: $color-invert
& > .navbar-burger
Copy link
Owner

Choose a reason for hiding this comment

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

You don't really need the nesting here. Just use .navbar-burger.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I changed it. Is it that what you meant?

Copy link
Owner

Choose a reason for hiding this comment

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

Not exactly. Put .navbar-burger as a sibling of .navbar-brand, not as a child of .navbar-brand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I see: .navbar-burger does not necessarily need to be a child of .navbar-brand. Makes sense. So, here my next try. Is that correct? Thank's for your patience.

When using a color modifier for a navbar (e.g., is-dark) the burger icon does not change the color. This commit adds the color modification for the navbar burger icon.
@corneliusludmann
Copy link
Contributor Author

Just want to ask whether it is ready to merge after the latest correction to include it in the next release!? Is there anything I can do to help? Thanks for considering …

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

Successfully merging this pull request may close these issues.

2 participants