Open Bug 2072311 Opened 2 months ago Updated 1 month ago

[UI] Remove underline when composing from Signature Dialog on PDF

Categories

(GeckoView :: PDF Viewer, task)

All
Android
task

Tracking

(Not tracked)

People

(Reporter: olivia, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group6])

Attachments

(1 file)

When typing into the PDF signature line, an active composable underline occurs. It looks particularly strange in the large edit box. Bug 2071386 ensures that autocorrect is off and the metadata that it is for a Person's Name is set. However, we still want to see if it is possible to get rid of this underline that marks active composition.

When I initially researched the problem, I had trouble finding good recent documentation on it. A lot of the StackOverflow discussions are 11+ years old and offer more non-robust solutions that might hurt composition in subtle ways. The diff D325867 also will likely have more commentary on it (still under review right now).

Goal of this bug is to try and find a good alternative for removing the underline that isn't going to break composition in some way. We also should confirm it isn't breaking the user experience in other ways because the underline also indicates morphable text. (e.g., I suspect the purpose of the underline is to indicate that selecting a proposed word from the predictive text box or using flick input on the Japanese keyboard will change the underlined characters.)

:aarjav confirmed removing the underline is still a goal.

Recommended steps:

  • Research techniques to remove the underline
    • We also need to do more to ensure this isn't a user setting, a lot of what I was seeing indirectly made me think this is a gboard setting specifically. It would be great to find documentation explaining the reasoning behind the underline and best practices. I only tested on a Pixel emulator for my original investigation.
  • Implement a technique, taking care to avoid options that are likely to break experiences elsewhere. (Many of the options I originally saw and some I tested seemed inadvisable as a robust solution.)
  • Do thorough testing to ensure it doesn't break experiences:
    • Check for documentation that talks about the purpose of this underline
    • Test on Google, Samsung, and ideally a third OEM with different default keyboards
    • Test TalkBack editing
    • Test using a Japanese flick input style keyboard
      • One of the random techniques I tried, (I think visiblePassword , maybe?), broke flick input. So, highly recommend that be part of the testing
    • Test accepting different autocomplete options

Thanks for raising!
It is a very standard Android pattern to have the current word in an editable text field underlined. This indicates to the user which word will be replaced if they pick one of the suggested offerings from the keyboard below. Without this, it could be quite annoying for the user if they choose a word from below and an unexpected part of the string they are editing changes.
I understand that names are a bit of a special case and typically consist of only a few words, so maybe in this case it is less critical: with a shorter string, you have a higher probability that you will replace the expected word :)
But i also feel like this is such a common interaction pattern on android, the screenshot doesn't look weird at all to me. Yes it is quite big. But if anything, i think it would look stranger without the text underline - usually it's just password fields that lack this.
Also, with this being a new feature to be able to add text on a pdf. I feel like the underline being there is a convenient cognitive shortcut for me to reinforce the idea of, oh look, this is just an edit text field, i can type in here. Without that being there, if i start typing and it doesn't appear, it might get confusing. I might wonder exactly what this box is offering - does it want me to draw a signature instead maybe? (because sometimes you have to do a scrawl in a box don't you, eg. on the doorstep if the postie brings you a parcel!)
Anyway, tl:dr; i don't think it's worth investing much time into the technical investigation part of this (which also sounds like it has multiple issues which could block this). I think sticking with the standard editable text ui is likely to feel less jarring for regular android users.

This was maybe improved by bug 2071386? At the PDF sync meeting it seems like it no longer happens for some users. I'm pretty sure it is still happening on my Samsung test device, but it seems like Platform behavior, just the same.

We're going to de-scope this back to the backlog after discussion since there isn't a good way to do this cosmetically without breaking platform expectations.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: