Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Sidebar not showing up #105

Closed
ghost opened this issue Jul 1, 2017 · 10 comments
Closed

Sidebar not showing up #105

ghost opened this issue Jul 1, 2017 · 10 comments
Labels

Comments

@ghost
Copy link

ghost commented Jul 1, 2017

I tried integrating sidebar as per the readme instructions but nothing is showing up.

@arkon
Copy link
Owner

arkon commented Jul 1, 2017

You need to provide more information. What version of ng-sidebar and Angular are you using? What does your template look like? Are there errors in the console?

@ghost
Copy link
Author

ghost commented Jul 1, 2017

angular 4, angular-cli - 1.0.2, ng-sidebar - 6.0.1 . I tried copy pasting the exact code from readme to my app component but nothing comes up html file shows ng -sidebar-x tags but nothing comes up.

@arkon
Copy link
Owner

arkon commented Jul 1, 2017

Does #100 help?

@ghost
Copy link
Author

ghost commented Jul 1, 2017

unfortunately, not

@arkon
Copy link
Owner

arkon commented Jul 1, 2017

What do you see in DevTools? Are the components there, but seemingly just without any height?

@ghost
Copy link
Author

ghost commented Jul 1, 2017

the components are there and for ng-sidebar-container, the height is 100%.

@arkon
Copy link
Owner

arkon commented Jul 1, 2017

If the components are there and you can see all the content within them in DevTools, it's likely an issue with styles. It's hard for me to pinpoint the issue without seeing it, unfortunately.

@TcQPAD
Copy link

TcQPAD commented Jul 2, 2017

The components are there but the base/class styles are just not applied to the elements. See:

bug-sidebar

The ng-sidebar class styles aren't applied to the HTML node, see :

no-styles-sidebar

@arkon
Copy link
Owner

arkon commented Jul 2, 2017

Looks fine to me. I'm assuming you didn't copy the regular Sass styles from the demo, so the base styles of .demo-sidebar aren't there. The component doesn't have any base styles beyond the positioning, so you can style it yourself.

@TcQPAD
Copy link

TcQPAD commented Jul 2, 2017

Well.. You're right! My bad there, thank you!

@arkon arkon closed this as completed Jul 2, 2017
@arkon arkon added the question label Jul 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants