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

Installation guide in wiki missing important part about CDK #611

Open
mario45211 opened this issue May 19, 2024 · 0 comments
Open

Installation guide in wiki missing important part about CDK #611

mario45211 opened this issue May 19, 2024 · 0 comments

Comments

@mario45211
Copy link

Hi,

Maybe I'm a little newbie in Github and I was unable to create PR to the wiki page, so I'm putting my improvement proposal to the Installation page in the wiki:

Installation

NPM

npm i ng-gallery @angular/cdk

// changes start

In case you're not using Angular Material in your project, remember to include CDK css styles into root stylesheet - it's required for lightbox component to operate correctly.

tl;dr put this in your styles.css file
@import '@angular/cdk/overlay-prebuilt.css';

More here: https://material.angular.io/cdk/overlay/overview#initial-setup

//changes end

I wrote information about standalone CDK installation when someone is trying use ng-gallery in project, which does not include Angular Material (as mine). For me that was a little tricky to figured out, why my lightbox preview doesn't work, so this may saves someone else time.

Cheers
Mario

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

No branches or pull requests

1 participant