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

fix: UX regression for iOS on Search and TODO List #462

Merged
merged 2 commits into from
Sep 5, 2020

Conversation

munen
Copy link
Collaborator

@munen munen commented Sep 5, 2020

Closes #454.

Unfortunately, the 'fix' is to disable auto-focus for iOS. Rationale:

On iOS, setting autoFocus in the Modal will move the contents of the
drawer off the screen, because the keyboard pops up late when the
height is already set to '92%' in the Drawer. With Redux, we could
certainly propagate a height back, but that seems hacky and there's
other complications:

  • There's no API to check if the keyboard is open or not.
  • When setting the height of the container to something like 48% for iOS, this works on iPhone (tested on Xs and 6S), but when the keyboard is closed, the container is still small when the user wants to read the longer list without the keyboard in the way.

There might be a better way: If the drawer wouldn't move, iOS likely
would set the heights correctly automatically.

I didn't spend more time on this (it's already hours), because the
right solution would likely be to work on redoing the design in a
well known fashion like Material Design.

     Unfortunately, the 'fix' is to disable auto-focus for iOS.
     Rationale:

     On iOS, setting autoFocus in the `Modal` will move the contents
     of the drawer off the screen, because the keyboard pops up late
     when the height is already set to '92%' in the `Drawer`. With
     Redux, we could certainly propagate a height back, but that seems
     hacky and there's other complications:

     - There's no API to check if the keyboard is open or not. When
     - setting the height of the container to something like 48% for
     - iOS, this works on iPhone (tested on Xs and 6S), but when the
     - keyboard is closed, the container is still small when the user
     - wants to read the longer list without the keyboard in the way.

     There might be a better way: If the drawer wouldn't move, iOS
     likely would set the heights correctly automatically.

     I didn't spend more time on this (it's already hours), because
     the _right_ solution would likely be to work on redoing the
     design in a well known fashion like Material Design.
@munen munen merged commit 91e9077 into master Sep 5, 2020
@munen munen mentioned this pull request Sep 5, 2020
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.

UX/Design Regression
1 participant