Upon reviewing Sample 1 on this specific page, you may notice that the text turns red when hovering over the folder entries, but not for the leaf entries. My goal is to have the styling for the leaf entries mimic the behavior of the folder entries.
Each branch within the tree is represented as an unordered list. The leaf entries are individual list items (<li>
). I have attempted changing the hover attribute for list items and adjusting the hover styling for different components within the DOM, yet it has proven ineffective or caused unintended consequences such as styling the entire branch with red text.
Is there a solution to achieve this desired outcome, where the text color changes for each individual item in the tree upon hovering, including the leaf nodes?