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

Styling in .scss isn't taking effect for .xng-breadcrumb-trail color #77

Closed
chmorgan opened this issue Mar 12, 2021 · 5 comments
Closed
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@chmorgan
Copy link

🐞 Bug report

Trying to use:

::ng-deep .xng-breadcrumb-trail {
color: white;
background-color: red;
}

in my app.component.scss file

to change the trail text to be white.

Description

Background color goes red but text color is stuck black.

🔬 Minimal Reproduction

💻Your Environment

Angular Version:
11.2.2




ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 11.2.1
Node: 12.18.2
OS: linux x64

Angular: 11.2.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1102.1
@angular-devkit/build-angular   0.1102.1
@angular-devkit/core            11.2.1
@angular-devkit/schematics      11.2.1
@angular/cdk                    11.2.1
@angular/cli                    11.2.1
@angular/material               11.2.1
@schematics/angular             11.2.1
@schematics/update              0.1102.1
rxjs                            6.6.3
typescript                      4.1.5


## 🔥 Exception or Error




@chmorgan chmorgan added the bug Something isn't working label Mar 12, 2021
@chmorgan
Copy link
Author

It also seems to not take effect with ::ng-deep .xng-breadcrumb-root or item when I'm at the top level page.

@stale
Copy link

stale bot commented Apr 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 11, 2021
@udayvunnam
Copy link
Owner

Not stale

@stale stale bot removed the wontfix This will not be worked on label Apr 12, 2021
@udayvunnam udayvunnam added good first issue Good for newcomers help wanted Extra attention is needed labels Apr 12, 2021
Repository owner locked and limited conversation to collaborators Apr 12, 2021
Repository owner unlocked this conversation Apr 12, 2021
@udayvunnam udayvunnam self-assigned this Apr 12, 2021
@udayvunnam
Copy link
Owner

udayvunnam commented Apr 24, 2021

@chmorgan can you try styling this way. Try giving it's parent a class name which increases CSS specificity -

.myapp-breadcrumb .xng-breadcrumb-trail {

@udayvunnam
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants