Skip to content

Conversation

@hqhhuang
Copy link
Owner

Bug/issue #, if applicable: 90568720, 88280711

Summary

Add right margin to the first item in the Nav bar

Testing

Steps:

  1. Verify that if there are more than one item in the nav bar, a margin-right is added
  2. If it's the only item, there should be no margin.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests - NA
  • Ran npm test, and it succeeded
  • Updated documentation if necessary - NA

add margin right to language toggle
Move CSS
Copy link
Collaborator

@dobromir-hristov dobromir-hristov left a comment

Choose a reason for hiding this comment

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

This is looking good to me, just one small remark and we are good to go here.

}
@include nav-in-breakpoint() {
&:not([data-previous-menu-children-count="0"]) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this line is for the .nav-menu-settings, as data-previous-menu-children-count is applied on it.

This is basically to not apply a border-top, in case the nav is in a state, where it has no items above the setting links.

Apply CSS to correct class
@hqhhuang hqhhuang merged commit 03d2ca6 into hqhuang/remove-right-side-bar Mar 25, 2022
@hqhhuang hqhhuang deleted the one-language-toggle-spacing branch March 25, 2022 17:13
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

Successfully merging this pull request may close these issues.

4 participants