Skip to content

fix: restore Linux glass label tooltip contrast - #3343

Merged
afonsojramos merged 1 commit into
mainfrom
fix/label-tooltip-contrast
Sep 30, 2026
Merged

afonsojramos merged 1 commit into
mainfrom
fix/label-tooltip-contrast

Conversation

@afonsojramos

Copy link
Copy Markdown
Member

On Linux with Glass enabled, label tooltips can show green text on a strong green fill inside a light gray box. Preserve Primer’s paired label colors and use the app theme’s surface and foreground for Linux Glass tooltips. The adjustment is limited to Linux because the reported appearance is correct on other platforms.

Reproduced the issue in Chromium with the Linux renderer bridge. The green-label contrast check failed before the fix (about 3.05:1 in dark mode and 3.16:1 in light mode); the six browser cases now meet 4.5:1 and verify tooltip dismissal. These cover Glass light/dark, a stored dimmed setting, System resolving to light, and Classic light/dark.

Validation: 35 metric component tests, six browser tests, formatting/lint, TypeScript, and production build pass. The build retains its large-chunk warning. Native macOS/Windows rendering and the full pinned-container screenshot suite were not run; no screenshot baselines changed.

@github-actions github-actions Bot added the bug Something isn't working label Sep 30, 2026
@afonsojramos
afonsojramos merged commit c378ba6 into main Sep 30, 2026
15 checks passed
@afonsojramos
afonsojramos deleted the fix/label-tooltip-contrast branch September 30, 2026 23:27
@github-actions github-actions Bot added this to the Release 7.x.x milestone Sep 30, 2026
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

1 participant