Skip to content

fix: replace placeholder alt text on people portraits#1306

Open
rushdarshan wants to merge 5 commits intoprocessing:mainfrom
rushdarshan:fix/people-alt-text
Open

fix: replace placeholder alt text on people portraits#1306
rushdarshan wants to merge 5 commits intoprocessing:mainfrom
rushdarshan:fix/people-alt-text

Conversation

@rushdarshan
Copy link
Copy Markdown

@rushdarshan rushdarshan commented Apr 6, 2026

Summary

  • replace placeholder alt text for Kenneth Lim portrait
  • replace placeholder alt text for Stalgia Grigg portrait

Why

  • fixes accessibility issue where screen readers announced placeholder text instead of useful portrait descriptions

Testing

  • verified source content now uses descriptive imageAlt values in both people entries

Closes #1299

Fixes processing#674

The regex in normalizeP5ReferenceLinks() was capturing the 'p5'
prefix in the capture group, causing duplicate 'p5' in URLs.

Before: #/p5/rectMode -> /reference/p5/p5/rectMode/ (broken)
After:  #/p5/rectMode -> /reference/p5/rectMode/ (fixed)

Updated regex to exclude 'p5' from capture group while still
handling both dot notation (#/p5.Element) and slash notation
(#/p5/rectMode) patterns.
return html.replace(
/href="#\/(p5\.[^"]+)"/g,
'href="/reference/p5/$1/"'
/href="#\/p5([.\/][^"]+)"/g,
Copy link
Copy Markdown
Member

@ksen0 ksen0 Apr 7, 2026

Choose a reason for hiding this comment

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

@rushdarshan please reverr changes not related to the issue/PR, thank you!

Copy link
Copy Markdown
Member

@ksen0 ksen0 left a comment

Choose a reason for hiding this comment

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

I updated the branch but there's some unrelated code. Do you mind reverting this? Thanks!

@rushdarshan rushdarshan force-pushed the fix/people-alt-text branch from 6e02083 to 97cb6db Compare April 7, 2026 12:42
@rushdarshan
Copy link
Copy Markdown
Author

Done, reverted the unrelated commit. Ready for re-review.

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.

People page: contributor portraits have placeholder alt text ("WRITE ALT TEXT HERE")

2 participants