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

Update position to fixed and zIndex to maximum value #121

Merged
merged 2 commits into from
Nov 17, 2022

Conversation

shrinathprabhu
Copy link
Member

Describe your changes

  • Changed position of wallet and bubble from absolute to fixed so wallet doesn't move on scroll
  • Updated z-index of wallet to max value 214748364 so nothing comes up on top of wallet
  • Updated z-index of auth popup

Screencasts

Before

Screencast.from.2022-11-15.17-22-19.webm

After

Screencast.from.2022-11-15.17-22-35.webm

Checklist before requesting a review

  • You have performed a self-review of your own code
  • You are using approved terminology
  • Your changes have been tested locally
  • Your code builds clean without any errors or warnings

@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for dev-authsdk-ref-guide ready!

Name Link
🔨 Latest commit 46a5212
🔍 Latest deploy log https://app.netlify.com/sites/dev-authsdk-ref-guide/deploys/6375eb66817bd900091fbaaf
😎 Deploy Preview https://deploy-preview-121--dev-authsdk-ref-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for authsdk-ref-guide ready!

Name Link
🔨 Latest commit 46a5212
🔍 Latest deploy log https://app.netlify.com/sites/authsdk-ref-guide/deploys/6375eb66744960000922b432
😎 Deploy Preview https://deploy-preview-121--authsdk-ref-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

src/styles.ts Outdated
// Size and position values are set in iframewrapper.ts

display: 'flex',
flexDirection: 'column',
boxShadow: '4px 5px 4px rgba(0, 0, 0, 0.25)',
borderRadius: '10px',

zIndex: '214748363',
Copy link
Contributor

Choose a reason for hiding this comment

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

how did you find this is the max value of z-index?

Copy link
Member Author

Choose a reason for hiding this comment

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

I googled it. It displays ±2147483647

Copy link

@ajithranka ajithranka left a comment

Choose a reason for hiding this comment

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

Legend has it that the actual max z-index value is 2147483647.

Let's not go crazy with this though. The max value may change between different browsers and is not guaranteed. There's also the possibility of overflow if the number is larger than the actual max putting the element behind others in the stacking context.

May be safer to use a number like 100000 that's large enough for ensure the wallet stays on the top but small enough to avoid overflow. If someone's using z-indexes higher than these in their app, they'll need to override the wallet styles.

@shrinathprabhu shrinathprabhu merged commit 25b1772 into dev Nov 17, 2022
@shrinathprabhu shrinathprabhu deleted the shrinath/hotfix-wallet-position-and-zindex branch November 17, 2022 09:02
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.

None yet

4 participants