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

Added max-height to paypal button, to avoid jumping of logo #138

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

benee
Copy link
Member

@benee benee commented Apr 19, 2024

Added max-height to Paypal Payments button.

When the logo is rendered by the JS, the PayPal logo/button is initially set to 100px, before updated to 55px.
This time period results in the logo changing position after load.

Setting max-height to the PayPal button makes sure it remains stable during loading.

Before video

Screen.Recording.2024-04-19.at.12.12.50.mov

After video

Screen.Recording.2024-04-19.at.12.13.17.mov

Copy link
Contributor

@mykunzer mykunzer left a comment

Choose a reason for hiding this comment

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

nice :D

@mykunzer mykunzer merged commit c7ddd81 into master Apr 29, 2024
2 checks passed
@mykunzer mykunzer deleted the paypal-button-fix branch April 29, 2024 08:20
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