Question:
How to Change direction of mat-tree UI line border in Angular


Angular's mat-tree component lets you show data in the form of a hierarchical tree. The UI line borders are very important in this part for showing the hierarchy of nodes visually. But there are times when developers may need to change the direction of the UI line borders so that the design or layout of their app works better.

When you open your tree items than your current css effecting, Please add below scss in styles.scss

mat-nested-tree-node{

  &[aria-expanded="true"]{

   & > li {

          border-bottom: none;

      }

  }

}


or simply add below css in your component's .css file

mat-nested-tree-node[aria-expanded="true"] > li {

  border-bottom: none;

}


Answered by: >Jignesh Panchal

Credit: >StackOverflow


Suggested blogs:

>How can I access specific data inside a JSON file on an Angular?

>HTTP request after another but only care about first one in Angular?

>Why am I getting unexpected parent reaction to child button Angular?

>How can I combine multiple HTTP calls in Angular using RxJS?

>Why Ng serve doesn't work in Angulars?

>How to use JSON:API along with Angular/RxJs?

>Why Ng server doesn't work in Angulars?

>How to operate data before return it using Angular16?

>How to Embed Node Red into existing Angular application?

>Why Angular routing with mat-toolbar is not working?

>Update Observable with value from a different Observable in Angular

>P-Dropdown doesn't set Value manually with Reactive Form in Angular

>Why Apex stacked chart bar is not showing in the x-axis in Angular?

>How can I delete the 3rdpartylicenses.txt file in Angular?


Submit
0 Answers