Frontmatter
| id | 8747 |
| title | Fix TreeList specificity preventing hover state |
| state | Closed |
| labels | bugdesignai |
| assignees | tobiu |
| createdAt | Jan 17, 2026, 5:59 AM |
| updatedAt | Jan 17, 2026, 6:10 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8747 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8727 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 17, 2026, 6:10 AM |
Fix TreeList specificity preventing hover state
tobiu added parent issue #8727 on Jan 17, 2026, 5:59 AM
tobiu assigned to @tobiu on Jan 17, 2026, 5:59 AM

tobiu
Jan 17, 2026, 6:10 AM
Input from Gemini 3 Pro:
✦ I have resolved the issue by:
- Adding a nested
:hoverrule to the unselected item block to explicitly restore the hover background (fixing thetransparentoverride).- Adding a specific
&[aria-selected=true]:hoverrule to explicitly enforce the selected color scheme on hover, ensuring that selected items do not visually "deselect" to the gray hover color.This ensures both states behave correctly and unambiguously.
tobiu closed this issue on Jan 17, 2026, 6:10 AM
The specific rule
.neo-list-item:not(.neo-list-item[aria-selected=true])inTreeList.scsssetsbackground-color: transparent, which overrides the default hover state due to higher specificity.We need to add a dedicated hover rule to restore visual feedback.