-
-
Notifications
You must be signed in to change notification settings - Fork 88
WIP [DO NOT MERGE] es-navbar #14
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
Conversation
Import Bootstrap Sass
<a href="{{link.href}}" class="nav-link" {{action navbar.collapse}}>{{link.name}}</a> | ||
{{/if}} | ||
{{#if (eq link.type 'dropdown')}} | ||
{{#bs-dropdown tagName="li" as |dd|}} |
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.
You should use the contextual component here: nav.dropdown
. This will also prevent the dropdown menu to use popper and absolute positioning.
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.
Ah, thanks. I missed that in the docs.
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.
Yeah, it's missing in the examples. I just added something there: http://www.ember-bootstrap.com/#/components/navbars.
collapsed=collapsed | ||
fluid=true | ||
onCollapse=(action (mut collapsed) true) | ||
onExpand=(action (mut collapsed) false) |
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.
If you don't need control over collapsed
, then you can remove these two action handlers and collapsed=collapsed
.
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.
👍
Howdy 👋 I just tried this branch in the deprecations app (doing a bunch of experiments) but it failed with the following error:
It seems like the current implementation of bootstrap into ember-styleguide requires bootstrap to independently be added to the consuming app 🤔 And when I do that... well... things go all screwy 😂 (edit: actually because of the above process of adding ember-bootstrap to the consuming app it used bootstrap 3 by default 😖) The general styles have still changed in the consuming app, so it's probably something to consider at this point, thoughts? PR for adding this to the Deprecations app: ember-learn/deprecation-app#67 and the netlify build url: https://deploy-preview-67--ember-deprecation-app.netlify.com/ You can see that it has changed since the last PR buid: https://deploy-preview-62--ember-deprecation-app.netlify.com/ |
… into feature/navbar
Feature/navbar
Feature/navbar improvements
Yes, that is a known limitation of bringing in addons as a nested dependency: their default blueprint does not get executed. In this case this is used to add a few dependencies (e.g. Bootstrap itself) directly to the consuming app's In this case There might be a way to work around this, by invoking the above blueprint as part of this addons own default blueprint. So the dependencies still get added to the consuming app, but automatically by This shouldn't be too hard, if you folks are interested in this, I should be able to create a PR! |
@simonihmig we don't need to pull in the deps in consuming apps, we just need the config part in ember-cli-build.js. We got it sorted. Thanks! |
@rwwagner90 are you okay for this to get merged and we can work on it from here? |
No description provided.