Ability to style entire selected treenode #3246
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Current behavior
When a node is selected in a tree, the class ui-state-highlight is added to the span inside the node that contains the text, allowing just the text to be styled when selected. The div that contains the entire node does not change:
Expected behavior
It is desirable to allow users to optionally style the entire tree node content when selected:
I would suggest that a new class is added, not ui-state-highlight which would contain style already, but an empty class like
ui-treenode-content-selected
which would allow the user (and theme creators) to add their custom style to it.I will submit a pull request shortly with this minor change.
What is the motivation / use case for changing the behavior?
The flexibility of styling is a great characteristic of PrimeNG and is great for most components but the tree component is generally less flexible and our designer would like to "flex his muscles" and apply a design change for a selected node in the tree that is applied to the entire node as displayed above.
Please tell us about your environment:
OS: Windows 7 Pro SP1 64-bit
IDE: Visual Studio Code (latest)
node: 6.9.5
npm: 4.3.0
The text was updated successfully, but these errors were encountered: