Page MenuHomePhabricator

Provide default image alt text in more contexts and support custom alt text
ClosedPublic

Authored by epriestley on Mar 5 2021, 12:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 4:11 PM
Unknown Object (File)
Sat, Apr 20, 5:37 PM
Unknown Object (File)
Sat, Apr 20, 4:43 AM
Unknown Object (File)
Wed, Apr 17, 3:15 PM
Unknown Object (File)
Thu, Apr 11, 7:23 AM
Unknown Object (File)
Sun, Mar 31, 4:03 PM
Unknown Object (File)
Fri, Mar 29, 5:35 PM
Unknown Object (File)
Thu, Mar 28, 8:36 PM
Subscribers
None

Details

Summary

Ref T13629.

  • Allow files to have custom alt text.
  • If a file doesn't have alt text, try to generate a plausible default alt text with the information we have.
Test Plan
  • Viewed image files in DocumentEngine diffs, files, {Fxxx} embeds, and lightboxes.
  • Saw default alt text in all cases, or custom alt text if provided.
  • Set, modified, and removed file alt text. Viewed timeline and feed.
  • Pulled alt text with "conduit.search".

Diff Detail

Repository
rP Phabricator
Branch
alt1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25220
Build 34806: Run Core Tests
Build 34805: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 5 2021, 12:49 AM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.