diff --git a/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css b/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css index 3d4933f75d..7d5bd8a6a6 100644 --- a/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css +++ b/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css @@ -145,6 +145,23 @@ cursor: pointer; } +/* Pointing at one file of a multi-file patch brightens that file alone: the + row keeps its idle color and diff totals instead of the whole-row hover. */ +@media (hover: hover) { + .row:has(.fileTargetLink:hover) { + color: var(--dsw-alias-label-tertiary); + } + + .row:not([aria-expanded='true']):has(.fileTargetLink:hover) .diffAdded, + .row:not([aria-expanded='true']):has(.fileTargetLink:hover) .diffRemoved { + color: inherit; + } + + .fileTargetLink:hover { + color: var(--dsw-alias-label-secondary); + } +} + /* Error row's collapsed summary: the failure's first line in the error color. */ .errorSummary { color: var(--dsw-alias-state-error-primary);