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
Maintain track size when changing unit #12
Labels
Comments
patak-dev
added
enhancement
New feature or request
good first issue
Good for newcomers
Hacktoberfest
Good issue for Hacktoberfest
labels
Sep 22, 2020
Can we use Polished for this enhancement? For em and rem at least, and for percentages maybe we can do the calc getting the container width. |
Interesting @abeledovictor, that is an option. We could also check how that utility is implemented, maybe it is a one liner that we can include in our utils and avoid the dependency |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you change a unit, the size is updated to 1fr, 300px, 10%, 4em. We should try to compute a new value for the track size that gives the same approximate size, but with the new unit. It doesn't need to be exact.
The text was updated successfully, but these errors were encountered: