Skip to content

fix(folder-nav): de-emphasize inactive tabs on small screens#2925

Open
cqnykamp wants to merge 2 commits into
mainfrom
claude/modest-franklin-6Cooi
Open

fix(folder-nav): de-emphasize inactive tabs on small screens#2925
cqnykamp wants to merge 2 commits into
mainfrom
claude/modest-franklin-6Cooi

Conversation

@cqnykamp

Copy link
Copy Markdown
Contributor

$(cat <<'EOF'

Summary

Fixes #2672 — on small screens the folder navigation panel renders as a horizontal row of tabs, but the existing active indicator (a left border) is invisible in that orientation, making it unclear which tab is currently active.

Changes

  • Bottom border indicator on small screens: switches the active-tab indicator from borderLeft (works in vertical list) to borderBottom (correct for horizontal row)
  • De-emphasize inactive tabs: sets opacity: 0.5 on inactive tabs at base breakpoint so the active tab stands out clearly; reverts to opacity: 1 at md+ where a left-border already distinguishes the selection
  • Structural separator: adds borderBottom to the navigation panel itself on small screens (mirrors the borderRight already used at md+) to visually separate navigation from page content
  • Button width/margin fix: changes width and marginLeft to be responsive — auto on small screens (correct for a horizontal row) vs. 100%/calc(100%-4px) on md+ (correct for a vertical list)

Tests

Adds FolderContext.cy.tsx (Cypress component tests, @group1):

  • Navigation links render and outlet content is shown
  • aria-current="page" is set on the active tab and absent from inactive tabs for all three routes
  • At mobile viewport (375 px): active tab has opacity: 1, inactive tabs have opacity: 0.5
  • At desktop viewport (1024 px): all tabs have opacity: 1
  • Accessibility checks pass on activities, trash, and small-screen viewports

Test plan

  • View the folder navigation on a narrow viewport (< 768 px) — active tab should be clearly highlighted, other tabs visually faded
  • View on a wider viewport (≥ 768 px) — left-border active indicator unchanged
  • CI component tests pass

https://claude.ai/code/session_01J33yqSc58jjoXqENN2bcEs
EOF
)


Generated by Claude Code

On mobile (horizontal layout), the left-border active indicator was
invisible and all tabs looked the same. On small screens:
- Switch the active indicator from left-border to bottom-border so it
  aligns with the horizontal row orientation
- Set inactive tab opacity to 0.5 to clearly de-emphasize them
- Fix button width/marginLeft so they are responsive (auto on mobile,
  full-width with left-indent on md+)
- Add a borderBottom to the panel on small screens to visually separate
  navigation from content (mirrors the borderRight already used on md+)

Adds a Cypress component test covering nav rendering, aria-current
attributes, and the responsive opacity behaviour.

https://claude.ai/code/session_01J33yqSc58jjoXqENN2bcEs

Copy link
Copy Markdown
Contributor Author

@cqnykamp — this PR addresses issue #2672. CI is running; could you review when it's green? Happy to adjust the opacity value or border style if a different visual treatment would work better.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clearer UI: de-emphasize other tab on small screens, folder page

2 participants