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

feat(plugin-basic-ui): minSafeAreaInsetTop #402

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

tonyfromundefined
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Jul 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stackflow-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 11:34am

Comment on lines 111 to 114
height: [
`max(${globalVars.appBar.forceSafeAreaInsetTop}, constant(safe-area-inset-top))`,
`max(${globalVars.appBar.forceSafeAreaInsetTop}, env(safe-area-inset-top))`,
],
Copy link
Member Author

@tonyfromundefined tonyfromundefined Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max로 하는게 나은지...

  • CSS Variable에 empty를 넣으면 자동으로 뒤쪽이 fallback이 되는지 확인 필요 -> fallback이 작동하지 않음

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Vanilla Extract의 createGlobalThemeContract는 선언된 변수의 초기값이 없으면 안됨
  • 따라서 초기값을 ""로 넣어줬음.
  • 해당 방식에서 fallbackVar 사용하니... ""가 값으로 들어가서, env 쪽으로 fallback이 안됨 ㅠ

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스크린샷 2023-07-17 오전 11 55 06

@tonyfromundefined
Copy link
Member Author

@stackflow/plugin-basic-ui@1.3.3-alpha.0

@tonyfromundefined tonyfromundefined changed the title feat(plugin-basic-ui): forceSafeAreaInsetTop feat(plugin-basic-ui): minSafeAreaInsetTop Jul 18, 2023
@tonyfromundefined tonyfromundefined merged commit da0f34b into main Jul 18, 2023
4 checks passed
@tonyfromundefined tonyfromundefined deleted the force-safe-area-inset-top branch July 18, 2023 12:45
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.

2 participants