Skip to content

Commit

Permalink
Merge pull request #17172 from aimanicose/fix/#17171-tree-inline-styl…
Browse files Browse the repository at this point in the history
…e-overridden

fix: #17171 Fix tree inline style overridde
  • Loading branch information
mehmetcetin01140 authored Dec 26, 2024
2 parents 2a44d26 + b415692 commit e923d26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/primeng/src/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,9 @@ export class Tree extends BaseComponent implements OnInit, AfterContentInit, OnC
node.style = '--p-focus-ring-color: none;';
return;
} else {
node.style = '--p-focus-ring-color: var(--primary-color)';
if (!node.style?.includes('--p-focus-ring-color')) {
node.style = node.style ? `${node.style}--p-focus-ring-color: var(--primary-color)` : '--p-focus-ring-color: var(--primary-color)';
}
}

if (this.hasFilteredNodes()) {
Expand Down

0 comments on commit e923d26

Please sign in to comment.