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

bugfix: size 0.5 conflict fluid range #168

Merged
merged 3 commits into from
Jan 10, 2021
Merged

bugfix: size 0.5 conflict fluid range #168

merged 3 commits into from
Jan 10, 2021

Conversation

marceloadsj
Copy link
Contributor

@marceloadsj marceloadsj commented Jan 10, 2021

Summary

Fixes: #162

Any size key between 0 and 1 should have a suffix "s" so it does not conflict with fluid (%) values.
This PR adds a suffix "s" to size key 0.5 on theme so it can be targeted without conflicting with fluid (50%).

I've improved the explanation on the docs of why the suffix "s" have be used.

Test plan

Added a test to check if all numeric keys of theme sizes are greater than 1.

@marceloadsj marceloadsj changed the title Bugfix/size 0.5 conflict fluid range bugfix: size 0.5 conflict fluid range Jan 10, 2021
@gregberge gregberge merged commit 762aa1c into styled-components:master Jan 10, 2021
@gregberge
Copy link
Collaborator

Thanks!

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.

Size with key 0.5 (0.125rem) conflicts with percentage size 1/2
2 participants