Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applying overflow:hidden to .mat-tab-body-content

Tags:

angular6

Applying overflow:hidden to .mat-tab-body-content. I have provided overflow-x:hidden in css but also it is not getting

like image 412
jobi jose Avatar asked Sep 17 '25 08:09

jobi jose


2 Answers

If you what to apply the style in the component css then you have use

::ng-deep .mat-tab-body-content {
    overflow: hidden !important;
}

with ::ng-deep. In this way the style is applied only in the component where scss belongs. Otherwise you have to change the global style file.

like image 194
Roberto Petrilli Avatar answered Sep 19 '25 23:09

Roberto Petrilli


If you mean hiding Overflow in css, the answer is :

 .mat-tab-body-content {
    overflow: hidden;
}

Or:

 .mat-tab-body-content {
    overflow-x: hidden;
    overflow-y: hidden;
}
like image 40
Matin B. Avatar answered Sep 19 '25 21:09

Matin B.