Repository navigation
fix(ui): keep the classic sidebar's selected icon visible after it is focused - #36322
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Removing the global focused-link color changes focus styling across the UI; links may lose the primary-color cue, while underlining remains. Removes the global unlayered VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |



Describe your changes:
In classic mode, with the sidebar collapsed, the icon of the selected item disappears after you click it and move the pointer away. The item shows as an empty blue square (seen on devrel, which is Collate, but the cause is in OSS).
RCA
app.lesshas had a global, unlayereda:focus { color: @primary-color; }since feat(ui): add support for brand color config part 1 #15714.NavItemButtonrenders an<a href>, added in Migrate display, navigation, selection and numeric components to core #35253. A link keeps focus after you click it.solidvariant,tw:bg-brand-solid tw:text-fg-white. Tailwind utilities live in a CSS layer, and unlayered rules always win over layered ones. So the focused link'scolorbecame the primary blue. ThecurrentColoricon then drew blue on a blue background.color: rgb(21,112,239), the same as its background, and the only colour rule matching it wasa:focus, a.ant-typography:focus.Fix: drop
colorfrom the globala:focusrule. Links keep the colour they already have, and focus is still shown by the underline and the focus ring. Other components already had to fight this rule (see the comments inAnnouncementCard.tsxandDataQualityIndicator.tsx).Screen.Recording.2026-10-27.at.5.47.48.PM.mov
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
Not applicable. The bug comes from the order of CSS layers, and jsdom doesn't apply that, so a Jest test can't reproduce it.
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Not run locally (OSS PR); the merge queue runs the full suite.
Manual testing performed
/lineage, clicked the selected Lineage item and moved the pointer away. The icon disappeared. The focused link computedcolorwas the brand-solid blue, matched only by thea:focusrule.a:focusonce this one is removed (git grep "a:focus").:3002) and Collate (:3003) in classic mode and in AI light/dark mode. Before/after screenshots and computed colours are below.prettier --checkpasses onapp.less.yarn token-auditreports no new errors (the 11 inapp.lessalready exist).UI screen recording:
Not applicable — this is a style fix, not a feature. Before/after screenshots are below.
How these were captured: I ran this branch locally against the local Collate backend: the OSS UI dev server (
:3002) and the Collate UI dev server (:3003). The Collate UI used this branch's OSS code viamake copy_om_ui_mirror. I drove both with headless Chrome through Playwright.a:focus { color: var(--ant-primary-color) }) injected again unlayered, which gives exactlymain's styling.OSS, classic mode. Rows: collapsed rail Lineage, expanded sidebar Lineage, a content link on Explore.

OSS, AI mode. Rows: light expanded nav, light rail, dark expanded nav, dark rail.

Collate, classic mode. Same rows as OSS classic.

Collate, AI mode. Rows: light expanded nav, light rail, light content link, then the same three in dark.

Computed colours of the focused element (the same in OSS and Collate):
main)rgb(21,112,239)onrgb(21,112,239)(icon invisible)rgb(255,255,255)onrgb(21,112,239).ask-*rgb(21,112,239)rgb(23,92,211), the same colour the link has when not focusedrgb(21,112,239)(dark blue on a dark surface)rgb(83,177,253), the dark-mode link tokenNo regressions: the only change outside the broken rail item is that a focused link keeps the colour it has when not focused.
Checklist:
REVIEW.mdand found no 🔴 findings.🤖 Generated with Claude Code


Confidence Score: 5/5
The change appears safe to merge, with no actionable issues found.Summary
Removes the global focused-link color override from
app.lessso links can keep their own colors.Reviews (1) · Last reviewed commit: "fix(ui): keep focused links' own colour ..." · Reviewed by Greptile