mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 01:58:39 +02:00
Text color for selected
This commit is contained in:
@@ -466,6 +466,7 @@ function TreeInner<T extends { id: string }>(
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
|
'[&_.tree-item.selected_.tree-item-inner]:text-text',
|
||||||
'[&:focus-within]:[&_.tree-item.selected]:bg-surface-active',
|
'[&:focus-within]:[&_.tree-item.selected]:bg-surface-active',
|
||||||
'[&:not(:focus-within)]:[&_.tree-item.selected]:bg-surface-highlight',
|
'[&:not(:focus-within)]:[&_.tree-item.selected]:bg-surface-highlight',
|
||||||
|
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ function TreeItem_<T extends { id: string }>({
|
|||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
onDoubleClick={handleDoubleClick}
|
onDoubleClick={handleDoubleClick}
|
||||||
disabled={editing}
|
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}
|
{...attributes}
|
||||||
{...listeners}
|
{...listeners}
|
||||||
tabIndex={isLastSelected ? 0 : -1}
|
tabIndex={isLastSelected ? 0 : -1}
|
||||||
|
|||||||
Reference in New Issue
Block a user