-
We currently have a Do we want to:
|
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 8 replies
-
2️⃣ At this time, we don't include 0 for |
Beta Was this translation helpful? Give feedback.
-
My thought is that the answer depends on our goals for tracking moving forward (after mainline is reached):
|
Beta Was this translation helpful? Give feedback.
-
I agree with 2. Zero will always be zero. Even if we add a token for it. My gut feeling is we should keep this simple and encourage the usage of the number zero and not provide a token. We could even document the number (not the token) across our token docs. |
Beta Was this translation helpful? Give feedback.
-
I don't have a strong opinion on this, and I'm happy to defer to this group. But if we choose option 2, I want to confirm next steps. Would this be the total set of work to achieve consistency inside Polaris tokens and our coverage analysis?:
|
Beta Was this translation helpful? Give feedback.
-
Side note: why are we specifying |
Beta Was this translation helpful? Give feedback.
-
After researching other systems and reviewing the current responses I think I'm coming around to option 2️⃣ I originally preferred zero tokens for things like:
That said, I'm still impartial on whether or not we continue to support zero length tokens 1️⃣ 🤷 2️⃣ |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I don't see any value in tokenizing Option 2 📈 |
Beta Was this translation helpful? Give feedback.
-
I am in favor of option 2️⃣ . It keeps it simple by providing what is only core to the system, not the kitchen sink of spacing values. This is similar to having a token for the color black named "black". Zero will always be 0️⃣ 👍 It may seem tidy to have a |
Beta Was this translation helpful? Give feedback.
-
Going to write the other side of this as most folks are leaning towards option two. If we had a token for |
Beta Was this translation helpful? Give feedback.
-
Thanks for weighing in everyone! 🙏🏻✨🎉❤️ We will move forward with option 2️⃣ based on our team's responses. Option 2️⃣ will provide the best experience for our developers (and option 1️⃣ doesn’t provide enough value to outweigh this). If we run into issues with this approach in the future we can always discuss this further as a team. 💬 |
Beta Was this translation helpful? Give feedback.
-
🚨 Reopening Question 🚨Yesterday, as I was trying to remove our If we remove zero tokens from our scales it will:
.class {
transition: opacity 0; // <time> values must have units (0ms or 0s) 🙅🏻♀️
} Moving Forward
|
Beta Was this translation helpful? Give feedback.
-
🚨 DECISION UPDATE 🚨We are going to keep our zero tokens, but not enforce unitless zeros in Decision Makers: @alex-page , @aaronccasanova , and @lgriffee While working to remove the zero tokens in our system ( In the case of In the case of |
Beta Was this translation helpful? Give feedback.
🚨 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 withstylelint-polaris
. We can have the benefit of using thi…