Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Change direction of mat-tree UI line border bottom issue design angular

mat tree changes direction from right to left. The bottom border needs to be removed refer to the Image
enter image description here https://stackblitz.com/edit/material-tree-nested-sndfhl?file=app%2Fapp.component.css

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading