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

icon on nb-action is not showing #1551

Closed
admir86 opened this issue Feb 18, 2018 · 1 comment
Closed

icon on nb-action is not showing #1551

admir86 opened this issue Feb 18, 2018 · 1 comment

Comments

@admir86
Copy link

admir86 commented Feb 18, 2018

Current behavior:
icon in nb-action is not showing. nebular-icons are installed and included in angular-cli.json

.angular-cli.json:

 "styles": [
                "../node_modules/font-awesome/css/font-awesome.min.css",
                "../node_modules/roboto-fontface/css/roboto/roboto-fontface.css",
                "../node_modules/bootstrap/dist/css/bootstrap.css",
                "../node_modules/@nebular/theme/styles/prebuilt/cosmic.css",
                "../node_modules/nebular-icons/scss/nebular-icons.scss",
                "styles.scss"
            ],

top-bar.component.html:

    <nb-actions class="header-container right">
        <nb-action>
            <nb-user [menu]="userMenu" [name]="user?.name" [picture]="user?.picture"></nb-user>
        </nb-action>
        <nb-action class="control-item" icon="nb-person"></nb-action>
    </nb-actions>

package.json:

"dependencies": {
    "@angular/animations": "^5.2.4",
    "@angular/common": "^5.2.4",
    "@angular/compiler": "^5.2.4",
    "@angular/core": "^5.2.4",
    "@angular/forms": "^5.2.4",
    "@angular/http": "^5.2.4",
    "@angular/platform-browser": "^5.2.4",
    "@angular/platform-browser-dynamic": "^5.2.4",
    "@angular/router": "^5.2.4",
    "@nebular/theme": "^2.0.0-rc.5",
    "bootstrap": "^4.0.0",
    "core-js": "^2.5.3",
    "font-awesome": "^4.7.0",
    "nebular-icons": "^1.0.6",
    "roboto-fontface": "^0.9.0",
    "rxjs": "^5.5.6",
    "zone.js": "^0.8.20"
  }

user (ng-user) part is ok. but i expect also the nb-action with the nb-person icon
capture

does it need something else to add/install?

@admir86
Copy link
Author

admir86 commented Feb 18, 2018

I fixed it, I had a bug in my custom theme, the fg and bg color was the same in the top bar ^^

@admir86 admir86 closed this as completed Feb 18, 2018
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