Skip to content

Draw active indication atop the activity bar icons when shown at the bottom#286694

Merged
benibenj merged 2 commits intomainfrom
copilot/draw-active-indicator-top
Jan 20, 2026
Merged

Draw active indication atop the activity bar icons when shown at the bottom#286694
benibenj merged 2 commits intomainfrom
copilot/draw-active-indicator-top

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 9, 2026

When activity bar position is set to "bottom", the active indicator was rendering below the icons. It should render above them instead.

Changes

  • paneCompositePart.css: Split .header-or-footer rules into .header-or-footer.header (indicator at bottom) and .header-or-footer.footer (indicator at top using top: 2px + border-bottom)
  • sidebarpart.css: Added border-bottom-color rule for footer position
  • auxiliaryBarPart.css: Added border-bottom-color rule for footer position

Before (indicator below icons)

image

After

Indicator renders above icons when activity bar is at bottom position.

Original prompt

This section details on the original issue you should resolve

<issue_title>Draw active indication atop the activity bar icons when shown at the bottom</issue_title>
<issue_description>* set activity bar position > bottom

  • notice how the active indidator (the underline) still renders below. IMO would be nice above

Image</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

When the activity bar is positioned at the bottom of the sidebar,
the active indicator (underline) now renders above the icons instead
of below them. This provides better visual feedback for the active item.

Changes:
- paneCompositePart.css: Separate styling for header (top) and footer (bottom)
  positions, with indicator at bottom for header and top for footer
- sidebarpart.css: Updated border color rules for footer position
- auxiliaryBarPart.css: Updated border color rules for footer position

Co-authored-by: benibenj <44439583+benibenj@users.noreply.github.com>
Copilot AI changed the title [WIP] Draw active indication above activity bar icons Draw active indication atop the activity bar icons when shown at the bottom Jan 9, 2026
Copilot AI requested a review from benibenj January 9, 2026 09:58
@benibenj benibenj marked this pull request as ready for review January 19, 2026 21:33
Copilot AI review requested due to automatic review settings January 19, 2026 21:33
@benibenj benibenj enabled auto-merge (squash) January 19, 2026 21:33
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css
  • src/vs/workbench/browser/parts/media/paneCompositePart.css
  • src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the positioning of the active indicator (underline) for activity bar icons when the activity bar is positioned at the bottom. Previously, the indicator was rendering below the icons; now it correctly renders above them.

Changes:

  • Split CSS rules in paneCompositePart.css to differentiate between .header (indicator at bottom using border-top) and .footer (indicator at top using top: 2px + border-bottom)
  • Added footer-specific border color rules in sidebarpart.css and auxiliaryBarPart.css to apply the correct active border color when the activity bar is in footer position

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/browser/parts/media/paneCompositePart.css Split .header-or-footer rules into .header and .footer variants with appropriate positioning (bottom/top) and border direction (border-top/border-bottom) for all states (checked, focus, clicked)
src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css Added .footer specific rules to use border-bottom-color instead of border-top-color for the active indicator
src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css Added .footer specific rules to use border-bottom-color instead of border-top-color for the active indicator

@benibenj benibenj merged commit 32fc704 into main Jan 20, 2026
38 of 39 checks passed
@benibenj benibenj deleted the copilot/draw-active-indicator-top branch January 20, 2026 06:40
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Draw active indication atop the activity bar icons when shown at the bottom

4 participants