-
Notifications
You must be signed in to change notification settings - Fork 250
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
issue/2589 Added navigation item management #2864
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code 👍
As this is a breaking change and will require it's own major version bump it is on hold until a major version bump becomes more necessary. Please continue to test to make sure it is robust and useful. |
Looking good, @oliverfoster. My feeling at this point in time for config would be to get the course author to hard-code the sequence of navbar items in a global location such as course.json. This would take the guess work out of where a plugin's functionality might be appended with the z-index style order system. "_navigation": {
"_left": [
"back"
],
"_middle": [
"navigationLogo"
],
"_right": [
"drawer",
"close"
]
} You mentioned possible further complexity where one single plugin might want to add several different icons to the navbar in different places – we might think about addressing this by getting a plugin's schema to define IDs or labels for each nav item for which the author can add to the global nav config. I assume the default label would be a property from the bower JSON for simplicity. All up for debate and formalisation, of course. |
closed temporarily to make way for #3169 |
#2589
This is the first step in allowing us to sort out the DOM order of items in the navigation bar. There will need to be a way of applying order and layout overrides for items from the JSON in the future.
Added
Test
Clone the course and switch to the correct branches
In the console.
The following should place back and drawer in the middle of the navigation bar:
Then switch their order:
Add an new item to the navigation bar:
Move the custom item to the left:
Warning
nav.hbs