fix(web): restore full-color round user avatars in Cmd+K typeahead (#2837)

* fix(web): restore full-color round user avatars in Cmd+K typeahead

Keep org avatars square and muted in the navbar search dropdown while showing user profile photos in full color with circular framing.

* fix(web): limit typeahead user color restore to profile photos

Keep muted glyph fallbacks for users without avatars while preserving full-color circular photos and explicit muted square org treatment.
This commit is contained in:
Vyctor H. Brzezowski
2026-06-24 14:08:27 -07:00
committed by GitHub
parent 5cbb8bfeb4
commit 82197de7e1
4 changed files with 47 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

+23
View File
@@ -288,4 +288,27 @@ describe("restored UI design contract", () => {
"grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr))",
);
});
it("keeps typeahead creator avatars round for users and square for orgs", () => {
const css = styles();
expect(cssRule(css, ".navbar-search-typeahead-icon .marketplace-icon-user")).toContain(
"border-radius: 999px",
);
expect(cssRule(css, ".navbar-search-typeahead-icon .marketplace-icon-org")).toContain(
"border-radius: 8px",
);
expect(
cssRule(css, ".navbar-search-typeahead-icon .marketplace-icon-user .marketplace-icon-image"),
).toContain("filter: none");
expect(
cssRule(css, ".navbar-search-typeahead-icon .marketplace-icon-org .marketplace-icon-image"),
).toContain("filter: grayscale(1)");
expect(
cssRule(
css,
".navbar-search-typeahead-icon .marketplace-icon-user:has(.marketplace-icon-image)",
),
).toContain("background: transparent");
});
});
+24
View File
@@ -28045,6 +28045,30 @@ a[class*="rounded-full"] {
opacity: 0.82;
}
.navbar-search-typeahead-icon .marketplace-icon-user {
border-radius: 999px;
}
.navbar-search-typeahead-icon .marketplace-icon-org {
border-radius: 8px;
}
.navbar-search-typeahead-icon .marketplace-icon-org .marketplace-icon-glyph,
.navbar-search-typeahead-icon .marketplace-icon-org .marketplace-icon-image {
filter: grayscale(1);
opacity: 0.82;
}
.navbar-search-typeahead-icon .marketplace-icon-user .marketplace-icon-image {
filter: none;
opacity: 1;
}
.navbar-search-typeahead-icon .marketplace-icon-user:has(.marketplace-icon-image) {
background: transparent !important;
border: none !important;
}
.navbar-search-typeahead-icon .marketplace-icon-glyph {
width: 15px;
height: 15px;