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

Dialog content not visible in Safari #156

Open
gabbsmo opened this issue Nov 8, 2024 · 0 comments
Open

Dialog content not visible in Safari #156

gabbsmo opened this issue Nov 8, 2024 · 0 comments

Comments

@gabbsmo
Copy link

gabbsmo commented Nov 8, 2024

Describe the bug
Dialog content is not visible in Safari on both mobile and desktop devices.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Pattern Lab
  2. Click on 'Show Modal Dialog'

Expected behavior
Dialog content is visible.

Screenshots
modal_safari

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Safari
  • Version: 16.5

Smartphone (please complete the following information):

  • Device: iPhone
  • OS: iOS 18
  • Browser: Safari

Additional context
I could workaround it by calculating the max height from svh instead of %.

.hoo-dlgcontent {
    max-height: calc(100svh - 5rem);
}
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

No branches or pull requests

1 participant