Text color for selected

This commit is contained in:
Gregory Schier
2025-10-21 07:46:55 -07:00
parent 1fce060ef7
commit f6a7257104
2 changed files with 2 additions and 1 deletions

View File

@@ -466,6 +466,7 @@ function TreeInner<T extends { id: string }>(
>
<div
className={classNames(
'[&_.tree-item.selected_.tree-item-inner]:text-text',
'[&:focus-within]:[&_.tree-item.selected]:bg-surface-active',
'[&:not(:focus-within)]:[&_.tree-item.selected]:bg-surface-highlight',

View File

@@ -275,7 +275,7 @@ function TreeItem_<T extends { id: string }>({
onClick={handleClick}
onDoubleClick={handleDoubleClick}
disabled={editing}
className="px-2 focus:outline-none flex items-center gap-2 h-full whitespace-nowrap"
className="tree-item-inner px-2 focus:outline-none flex items-center gap-2 h-full whitespace-nowrap"
{...attributes}
{...listeners}
tabIndex={isLastSelected ? 0 : -1}