Skip to content

Prevent add to cart button bouncing #922

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Roene-JustBetter
Copy link
Member

When we click on the add to cart button the text inside the button changes this will make the button bouncing. We can't add a width because translations could be longer or shorter inside the button.

Schermopname.2025-07-11.om.11.28.48.mov

To prevent the bounce on the button I removed the text inside the button when we are in the loading and finished state. I added a loading indicator on the button and cursur-progress when we are in the loading sate.

Schermopname.2025-07-11.om.11.26.45.mov

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.

1 participant