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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trays need extra padding on iPhone X #782

Closed
devongovett opened this issue Jul 18, 2020 · 17 comments 路 Fixed by #1007
Closed

Trays need extra padding on iPhone X #782

devongovett opened this issue Jul 18, 2020 · 17 comments 路 Fixed by #1007
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@devongovett
Copy link
Member

馃悰 Bug Report

Trays on iPhone X or other iPhones with no home button are partially obscured by the home indicator at the bottom of the screen.

馃 Expected Behavior

There should be some extra padding at the bottom of the tray to account for the home indicator.

馃槸 Current Behavior

The home indicator sometimes overlaps or is too close to the contents of the tray, making it hard to access.

馃拋 Possible Solution

We could possibly add some padding using the safe area insets defined in CSS. Not tried this yet though. https://webkit.org/blog/7929/designing-websites-for-iphone-x/

馃實 Your Environment

Software Version(s)
react-spectrum 3.0.2
Browser Safari
Operating System iOS

馃Б Your Company/Team

RSP

@devongovett devongovett added bug Something isn't working good first issue Good for newcomers labels Jul 18, 2020
@sanskar-p
Copy link

Hi @devongovett
Is it fine if I try my hands on this issue? I'll start by trying safe-area-inset as mentioned in the link you suggested.(https://webkit.org/blog/7929/designing-websites-for-iphone-x/)

@devongovett
Copy link
Member Author

@sanskar-p that would be awesome! Let us know if you have any questions. 馃榾

@sanskar-p
Copy link

sanskar-p commented Jul 19, 2020

@devongovett extremely sorry to bother you with such a simple issue. But I can't seem to successfully run yarn install. I'm using Windows 10.
Here is the error I'm getting.
image

@devongovett
Copy link
Member Author

@sanskar-p Looks like you need to install the windows dev tools (Visual Studio). See https://github.com/nodejs/node-gyp#on-windows. Let me know if it doesn't work.

@sanskar-p
Copy link

Hi! Your suggestion fixed the previous error. I had to install MinGW to be able to run makefile. But now I'm facing this issue. pwd is a Linux command and hence I'm unable to work around this problem.

image

@mischnic
Copy link
Contributor

mischnic commented Jul 19, 2020

You can remove the && pwd part in the build-icons scripts in these files for now:
packages/@spectrum-icons/color/package.json
packages/@spectrum-icons/ui/package.json
packages/@spectrum-icons/workflow/package.json

It's not really needed anyway and just a kind of progress indicator in the terminal

@snowystinger
Copy link
Member

Yeah, that's an old artifact that we can get rid of

@sanskar-p
Copy link

I'm still not able to run yarn install successfully. Here is the error

image

@mischnic
Copy link
Contributor

Looks like nobody so far was working on Windows 馃槃

Add the package cross-env as a dev dependency and prepend it (cross-env BUILD_ENV=production babel ....).

@sanskar-p
Copy link

I was finally able to run the storybook after jumping through many loops. However, now the storybook does not display properly 馃槩
image
image

@devongovett
Copy link
Member Author

Did you by chance run make build prior to running the storybook? If so, it might be resolving to the built packages instead of the source code. Try running rm -rf packages/*/*/dist (or whatever the equivalent windows command is).

@sanskar-p
Copy link

sanskar-p commented Jul 21, 2020

I don't think I ran make build. Anyhow, running rm -rf packages/*/*/dist did not make a difference.馃槩

@snowystinger
Copy link
Member

any warnings or errors of note in your terminal?

@sanskar-p
Copy link

There are some warnings when I run yarn install to install the dependencies but none when I run yarn start

@mischnic
Copy link
Contributor

@sanskar-p I've opened a PR to fix the whole Windows situation (including a change to the webpack config to fix storybook): #805.

@ronderksen
Copy link
Contributor

Does this issue still occur? I've looked at the tray on my iPhone, but it seems that the grid layout adds enough space now?

@devongovett
Copy link
Member Author

I believe it is still an issue yes. If you open the docs for Picker, and open the example, you can see that tapping near the bottom of the screen on the last item doesn't activate it probably due to the home indicator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants