Skip to content

Should we include 0 in our spacing token scale? #7334

Answered by lgriffee
lgriffee asked this question in Q&A
Discussion options

You must be logged in to vote

🚨 DECISION UPDATE 🚨

We are going to keep our zero tokens, but not enforce unitless zeros in stylelint-polaris

Decision Makers: @alex-page , @aaronccasanova , and @lgriffee


While working to remove the zero tokens in our system (--p-space-0 and --p-duration-0) it’s become apparent that the lift required to remove these tokens is too large/complex to justify removing them.

In the case of --p-space-0 this token is valuable in our components for setting responsive styles and would otherwise require complex logic/workarounds to implement. Keeping this token does not mean that we will enforce its usage in place of unitless zero values with stylelint-polaris. We can have the benefit of using thi…

Replies: 13 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@aaronccasanova
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alex-page
Comment options

Comment options

You must be logged in to vote
1 reply
@SeanyB
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

lgriffee
Oct 4, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

lgriffee
Nov 18, 2022
Maintainer Author

You must be logged in to vote
5 replies
@sam-b-rose
Comment options

@jesstelford
Comment options

@aveline
Comment options

@tjonx
Comment options

@lgriffee
Comment options

lgriffee Nov 23, 2022
Maintainer Author

Comment options

lgriffee
Feb 15, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by lgriffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet