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

Number selection alignment #198

Closed
swashbuck opened this issue Dec 13, 2023 · 1 comment · Fixed by #200
Closed

Number selection alignment #198

swashbuck opened this issue Dec 13, 2023 · 1 comment · Fixed by #200
Assignees

Comments

@swashbuck
Copy link
Contributor

swashbuck commented Dec 13, 2023

Subject of the issue

The number in the selection UI element can become vertically misaligned when @body-size is something other than 1rem. This can be fixed by making the element a flex container and centering it.

.slider {
  &__number,
  &__number-selection {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

Other elements may need to be adjusted as well.

Steps to reproduce

Set the @body-size variable to 1.5rem.

Screenshots

@body-size at 1rem:
body-size-1rem

@body-size at 1.5rem:
body-size-1 5rem

Copy link

🎉 This issue has been resolved in version 4.5.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant