Skip to content

Bug fix: Accessibility: High contrast theme on activity bar inconsistent #245404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nickbrit
Copy link

@nickbrit nickbrit commented Apr 3, 2025

Issue Associated: #245121

Fixed the accessibility hover and active states for activity bar icons in the high contrast theme.

Changes:

  • Replaced ::before with a new <div> inside the .action-item container to handle the hover and active outline.
  • ::before doesn’t work with CSS masks. It is used for outlines, while CSS masks are applied to extension icons, but they don’t work together.
  • Using an extra <div> ensures the outline is visible and works consistently across all icons.

ezgif-83798f5967789c

@nickbrit
Copy link
Author

nickbrit commented Apr 3, 2025

@microsoft-github-policy-service agree
@microsoft-github-policy-service agree
@microsoft-github-policy-service agree company="Microsoft"

@baochit6789
Copy link

nickbrit:bug-fix-accessibility

@RedyAu
Copy link

RedyAu commented Apr 5, 2025

Thank you for the fix! This was a small issue, but inconsistencies add up quick.

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.

7 participants