Delete icon alt and comment text when deleting icon

Description

Steps to reproduce

  1. Log in

  2. If you don’t have an icon, icon alt text, and icon comment text for at least one of your pseuds, add them:

    1. Hi, username! > My Preferences > Manage My Pseuds

    2. Follow “Edit” for the pseud you’d like to modify

    3. Use “Upload a new icon” choose an image from your device

    4. Fill in the “Icon alt text” and “Icon comment text” fields

    5. Press “Update,” which will send you back to your dashboard

  3. Once you have a pseud with an icon, icon alt text, and icon comment text, remove the icon:

    1. Hi, username! > My Preferences > Manage My Pseuds

    2. Follow “Edit” for the pseud you’d like to modify

    3. Check “Delete your icon and revert to our default”

    4. Press “Update”

What happens

Your icon is deleted!

But any alt text you had sticks around, so we’re basically lying to screen readers about what the image is.

What should happen

The “Delete your icon and revert to our default” checkbox should be renamed “Delete your icon and revert to our default. This will also remove your icon alt text and comment text.”

It should be updated to provide the described behavior.

This should also apply to admins deleting icons (AO3-4595).

Activity

Show:

Jenni D. 
April 21, 2024 at 1:06 AM

✅ At the user level, the icon and alt text were deleted. Checkbox indicated that icon and text would be deleted.

lydia-theda 
April 20, 2024 at 3:19 AM
(edited)

admin deleted an icon with alt text. Icon and text were both removed. The checkbox indicated that the text would be removed.

Brian Austin 
April 20, 2024 at 3:12 AM

Checkbox text looks good now, thanks !

Claire Carden 
April 10, 2024 at 11:40 PM

thanks, I’ll look into this!

Brian Austin 
April 10, 2024 at 1:02 AM

I deleted my pseuds' icon and observed the alt text was gone too. However, the text change (to “Delete your icon and revert to our default. This will also remove your icon alt text and comment text.”) doesn’t seem to be there.

DeployedToBeta

Details

Assignee

Reporter

Roadmap

Icons
Pseuds

Priority

Affects versions

Fix versions

Components

BackEnd

Difficulty

Required Access Level

Admin

Milestone

Sentry

Created September 20, 2023 at 2:30 AM
Updated April 30, 2024 at 9:33 PM
Resolved April 30, 2024 at 9:33 PM