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

Zulip mobile branch #16

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Zulip mobile branch #16

wants to merge 7 commits into from

Conversation

supra08
Copy link

@supra08 supra08 commented May 9, 2024

No description provided.

KshitizSareen and others added 7 commits February 10, 2023 10:30
Long passwords and show/hide buttons overlap with each other. I
fixed this problem by doing the following:

- I changed the style of Password Input to take up as much space as
  needed. I did this by setting a flex of 1 to the Password Input.

- I changed the positioning of the show/hide button from absolute to
  relative.

- I ensured horizontal alignment by setting the flex-direction of
  the parent view to 'row'.

- To fix the problem of the changing width of the text input, when
  the show/hide text changes, I replaced the show/hide text with a
  show/icon. The show/hide icon is an eye-open/eye-closed icon. This
  icon always has a fixed width and does not affect the text input.

- I removed hide text from messages_en.json since it is not in the
  app.

I tested this on Android and IOS devices with different screen
sizes, and it works fine on both platforms.

Fixes: zulip#5614
…tton

The touchable-feedback area was right up against the right edge of
the password input. Give some margin in between, for some breathing
room.
This lets us have a more compact layout (e.g., the left edge of the
icon is just 8px away from the right edge of the password input,
instead of that 8px plus 12px of padding in the Touchable) while
maintaining the 48px touch-target size with the help of `hitSlop`.
Now, after changing the show/hide button to be an icon instead of
text, we still present user-facing text to screen reader software.

Tested on iOS with VoiceOver, and implemented with help from this
article:
  https://incl.ca/show-hide-password-accessibility-and-password-hints-tutorial/
Copy link

dashwave bot commented May 24, 2024

Build Status ✅ Successful
Build Time 4m31s
📱 Emulation Link https://console.dashwave.io/emulator/2156/preview?device=emulator
Logs See Logs

@supra08
Copy link
Author

supra08 commented Oct 4, 2024

@dashwave /review

1 similar comment
@supra08
Copy link
Author

supra08 commented Oct 4, 2024

@dashwave /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.

3 participants