Questions tagged [ng-deep]

20 questions
0
votes
1 answer

I can't seem to align my PrimeNG Calendar component

::ng-deep p-calendar.calendar-control > span > input.p-inputtext { border: 1px solid black; background: #eeeeee; text-align: center !important; } The text is not being aligned to the center
software is fun
  • 7,286
  • 18
  • 71
  • 129
0
votes
0 answers

How to fix ng-deep bleeding in parent component

Problem At the moment, I am encountering ng-deep styling bleeding into other components. However, I can not solve this with the use of :host or by looking at a certain parent component like :ng-deep parent-component { .k-window-content { …
Niels_
  • 76
  • 7
0
votes
1 answer

How to alter styling declared in global style.scss from a child component css and scope it only for that component

I have declared some css styling in global style.css file which is src/style.css in my angular project. In one of my component I want to alter some styling and scope it only for that component. Currently, I can able to do that by using ::ng-deep,…
0
votes
0 answers

Angular: /deep/ doesn't work on angular upgrade

I have my application in angular5 and I upgraded it to angular6. I have my scss files with /deep/ to override the styles. All the styles with it is broken now. I tried ::ng-deep/ng:host::ng-deep didn't work. I tried keeping viewEncapsulation but…
indra257
  • 66
  • 3
  • 24
  • 50
0
votes
1 answer

How to change styles of child mat angular component?

As angular official documentation says, ::ng-deep , >>>, /deep/ is deprecated and will be removed soon: https://angular.io/guide/component-styles#deprecated-deep--and-ng-deep If i am using mat components like or a more comprehensive…
Anton
  • 516
  • 1
  • 6
  • 22
1
2