zulip/zulip-mobile

Tweak UI of mention-unsubscribed warning

Open

#4,224 opened on Aug 11, 2020

View on GitHub
 (2 comments) (0 reactions) (1 assignee)JavaScript (673 forks)github user discovery
a-compose/sendhelp wanted

Repository metrics

Stars
 (1,348 stars)
PR merge metrics
 (PR metrics pending)

Description

This issue is to follow up on #4219 with some small UI improvements to the "$person will not be notified unless you subscribe them" warning which we added in #4101 (addressing #3373). Going through my comment at https://github.com/zulip/zulip-mobile/pull/4101#issuecomment-669764675 in order:

  • button shape/size in visual appearance -- done in #4219
  • button touch target to 48px (extending beyond visual button) -- still TODO
  • no border -- done in #4219
  • background color -- still TODO
  • text/background color contrast, for legibility -- done in #4101 before merge
  • cut animation -- done in #4219
  • use a nice slide-in animation instead -- still TODO

See that comment for details on each of these. For the touch target, @chrisbobbe adds (at https://github.com/zulip/zulip-mobile/pull/4219#issuecomment-670784841 ) :

For this, we'll likely want to use the hitSlop prop of the component that gets the onPress prop. We may have to adjust the dimensions of its parent, too:

The touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.

Contributor guide