Skip to content

Styles in single component are not applied #7145

@mduerr18

Description

@mduerr18

Hi guys,

my problem is following:

image

as you see my navbar has the background color red, so I styled my md-input in the navbar white. I defined those styles in my styles.scss, where I overwrite the styles of a prebuilt theme.

styles.scss:
image

Inside of the component you can see under the navbar, I want to overwrite the styles of the md-input because the background-color there is white and so you can´t even see the md-input. In the following screenshot you can see the stylesheet of the component:

image

these styles does not overwrite styles for my component. I also tried the single encapsulation types of angular 2, didn´t work either and I also tried the "/deep/" in my scss but this overwrites also the global styles.

thank you for your help,

kind regards,

Mario

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions