Jibin TJ
Jibin TJ

Reputation: 446

Removing the border in primeng p-tree component for expansion

Which is the best way to remove the border in a primeng component during the expansion.

In my view, the below screenshot will just confuse user as there is an treenode with border and a selected treenode with background color.

So I want to get rid of the treenode border while expansion.enter image description here

Upvotes: 0

Views: 1982

Answers (2)

Clement Martino
Clement Martino

Reputation: 475

with primeng version 17+ i figure out to

.p-treenode-content {
  box-shadow: none;
}

.p-tree-filter {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: none;
  border-color: inherit;
}

Upvotes: 0

Jibin TJ
Jibin TJ

Reputation: 446

I figured it out to

.ui-treenode-content:focus {
    outline: none;
}

Upvotes: 1

Related Questions