-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Incorrect nav button position #4393
Comments
can't see it in demos: https://swiperjs.com/demos#navigation |
@vltansky actually on your screenshot nav buttons are not centered vertically :) |
hhh right, expected it to be much lower :) |
@vltansky it's much more obvious when the buttons are styled to have a (semi-)solid background |
Thanks for the quick fix. I'd like to suggest centering the button using margin-top: 0;
transform: translateY(-50%); |
There is a reason not to use transform, because with some sizes like let's say |
Hi,
After upgrading from 6.5.0 to 6.5.2, the navigation buttons moved downward by half their height, and look wrong. I've tried with Chrome, Firefox and Safari on MacOS, all latest versions at the moment. The results are the same in all three browsers.
The issue is introduced by commit 2f18e00. It looks like merely a syntactical change, producing the same result as before. However, inspecting the buttons show that their
margin-top
properties are0
. Reverting it resolves the problem (although I'm sure that would create other problems).CC @andymark-by
Best,
Victor
The text was updated successfully, but these errors were encountered: