akveo / akveo/nebular

Changing theme makes cards disappear

Open
#2,393 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I have modified the ngx-admin dashboard to display dynamic card.

When the theme is 'default' I can see the cards are loaded according to 'default.png' image attached.

**/src/app/@theme/theme.module.ts**

```
NbThemeModule.forRoot(
{
name: 'default', // change here it can be default, corporate, cosmic or dark
},
[ DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME ],
).
```

However, when I set the name to another theme and **npm-start** my angular app again the cards are not visible according to 'other.png' image attached.

**/src/app/@theme/theme.module.ts**

```
NbThemeModule.forRoot(
{
name: 'dark', // changing the theme here or anywhere in the app makes my cards disappear from the dashboard
},
[ DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME ],
).
```

![default](https://user-images.githubusercontent.com/18000216/83436037-dd41d800-a445-11ea-84c4-01d7ceb96a2e.png)
![other](https://user-images.githubusercontent.com/18000216/83436051-e3d04f80-a445-11ea-942b-775e3a0ed364.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.