Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to copy ALT text from an image on mobile #1102

Open
mackuba opened this issue Aug 4, 2023 · 7 comments
Open

Make it possible to copy ALT text from an image on mobile #1102

mackuba opened this issue Aug 4, 2023 · 7 comments
Labels
feature-request A request for a new feature x:discussing We've seen the request and we're talking about it!

Comments

@mackuba
Copy link

mackuba commented Aug 4, 2023

Is your feature request related to a problem? Please describe.

If someone is cross-posting content manually to multiple platforms, I think it's a pretty common action to make a post with an image with alt text and then copy the post text and the alt text to the other app like Twitter or Ivory. The problem here is that it doesn't seem to be possible to copy alt text from an image in the Bluesky app. The alt text field can't be selected and does not react to taps.

The workflow:

  1. Open Bluesky app
  2. Open create new post
  3. Enter post text
  4. Add an image
  5. Add image alt text
  6. Submit the post
  7. Go to Twitter app, open create new post dialog
  8. Go back to Bluesky, copy post text, go to Twitter, paste it there
  9. Go back to Bluesky, click the image, copy alt text - ??? - no profit

Describe the solution you'd like

  1. Option 1: make the alt text textfield selectable, so the native text actions popover appears and you can tap "copy"
  2. Option 2: copy the alt text on tap or long-tap
@mackuba mackuba added the feature-request A request for a new feature label Aug 4, 2023
@pfrazee pfrazee added the x:discussing We've seen the request and we're talking about it! label Aug 7, 2023
@deceptionagent
Copy link

regarding option 2:

maybe double-tap instead of single-tap to reduce accidentally blowing away your pasteboard with errant touches.

@deceptionagent
Copy link

regarding option 2:

maybe double-tap instead of single-tap to reduce accidentally blowing away your pasteboard with errant touches.

oh right - since this bug was written, the alt text UI has changed so single-tap expands or collapses the alt text overlay. so yeah you'd probably need it to be double-tap, press-and-hold (P&H), a discrete button, or a selectable text label on P&H.

@deceptionagent
Copy link

when you go to do this, make sure whatever interaction method you decide on can actually be performed using VoiceOver (and the Android equivalent). i don't know what RN's accessibility story will be here with regard to interactions on the text label itself, so if you need to use a discrete button then that's what you gotta do.

remember, people who use screenreaders need to reproduce alt text as well.

@deceptionagent
Copy link

it occurs to me that a discrete button would be more easily discoverable to screenreaders. could just be a small, simple icon. (assuming RN can properly set NSAccessibilityDescriptionAttribute.)

@pfrazee
Copy link
Collaborator

pfrazee commented Dec 27, 2023

Appreciate it chelsea

@haileyok
Copy link
Contributor

haileyok commented Dec 27, 2023

when you go to do this, make sure whatever interaction method you decide on can actually be performed using VoiceOver (and the Android equivalent). i don't know what RN's accessibility story will be here with regard to interactions on the text label itself, so if you need to use a discrete button then that's what you gotta do.

remember, people who use screenreaders need to reproduce alt text as well.

i would assume that using the native copy behavior would allow for this, is that the case? i'd also assume that react-native would handle accessibility by default when adding the selectable prop to the text but you know...

@deceptionagent
Copy link

when you go to do this, make sure whatever interaction method you decide on can actually be performed using VoiceOver (and the Android equivalent). i don't know what RN's accessibility story will be here with regard to interactions on the text label itself, so if you need to use a discrete button then that's what you gotta do.

remember, people who use screenreaders need to reproduce alt text as well.

i would assume that using the native copy behavior would allow for this, is that the case?

what i mean is that i don't know what interactions RN exposes and precisely to what extent it invents its own solutions -- i am a UIKit/AppKit girl -- so i want to put it out there that it's important to ensure the solution is usable via VoiceOver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a new feature x:discussing We've seen the request and we're talking about it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants