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

Improve ios web app styling #274

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

keeganpotgieter
Copy link
Contributor

@keeganpotgieter keeganpotgieter commented Feb 17, 2024

Fixes #269.

Changes

  1. Added new updateRgbaAlpha function to helpers to extract background colours
  2. Caches the initial background colour
  3. Uses the overlay background colour for the new body background colour
  4. Changes body colour back to the initial value when the drawer is closed

Copy link

vercel bot commented Feb 17, 2024

@keeganpotgieter is attempting to deploy a commit to the emil Team on Vercel.

A member of the Team first needs to authorize it.

@@ -100,6 +101,12 @@ function Root({
if (snapPoints && activeSnapPointIndex === snapPointsOffset.length - 1) openTime.current = new Date();
}, []);

const overlayBackgroundColor = React.useMemo(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Calculates the overlay's background colour to be used as the body background.

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.

Add support for iOS PWA app bar
1 participant