Skip to content

Extend JS avatar fallback to images inside .avatar#7240

Merged
akatsoulas merged 1 commit intomozilla:mainfrom
denyshon:fix-js-avatar-fallback
Feb 10, 2026
Merged

Extend JS avatar fallback to images inside .avatar#7240
akatsoulas merged 1 commit intomozilla:mainfrom
denyshon:fix-js-avatar-fallback

Conversation

@denyshon
Copy link
Copy Markdown
Contributor

@denyshon denyshon commented Feb 8, 2026

Resolves #2783.

Our JS-level avatar fallback is limited to img.avatar (images with the "avatar" class applied). However, on question details pages (as well as some others), avatar images do not have the "avatar" class and are instead located inside other elements with the "avatar" class.

This patch extends the selector to child images of elements with the "avatar" class.

@akatsoulas akatsoulas merged commit c890965 into mozilla:main Feb 10, 2026
2 checks passed
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.

(Some) old style avatars are not visibile inside the AAQ forums

2 participants