- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
Add new spacing / border tokens and aliases #9322
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
Conversation
| I'm adding new border tokens here as well since they're also decimal related | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far 👍 Can we continue prefixing all net new tokens with experimental? With our current approach, these beta flagged tokens will be globally accessible and I think it's important we clearly communicate and distinguish the tokens we just documented/rolled out across the org from those temporarily living side by side the current system (additionally allowing us to freely make breaking changes). We should be able to follow the pattern established in the color token group everywhere and migrate tokens to any naming convention in the future.
| @kyledurand we no longer need the  | 
17d1390    to
    7d0b80b      
    Compare
  
    ### WHY are these changes introduced? Fixes Shopify/archive-polaris-backlog-2024#70 Fixes Shopify/archive-polaris-backlog-2024#69 Couple of options here, and I don't love this one but I figured I'd put the exploration up anyway. We need a value of 6px which would mean a token 1.5. Our current naming convention doesn't really support adding a decimal value that isn't zero trailing. i.e. we have space-05 representing 0.5 but space-15 would mean something completely different. This adds underscore aliases to decimal values that already exist and also adds a value for `space-1_5` The other option, since this is a one off would just be to use calc() to get 6px out of the current tokens but we'll still need a decimal solution for borders
### WHY are these changes introduced? Fixes Shopify/archive-polaris-backlog-2024#70 Fixes Shopify/archive-polaris-backlog-2024#69 Couple of options here, and I don't love this one but I figured I'd put the exploration up anyway. We need a value of 6px which would mean a token 1.5. Our current naming convention doesn't really support adding a decimal value that isn't zero trailing. i.e. we have space-05 representing 0.5 but space-15 would mean something completely different. This adds underscore aliases to decimal values that already exist and also adds a value for `space-1_5` The other option, since this is a one off would just be to use calc() to get 6px out of the current tokens but we'll still need a decimal solution for borders
WHY are these changes introduced?
Fixes https://github.com/Shopify/polaris-summer-editions/issues/70
Fixes https://github.com/Shopify/polaris-summer-editions/issues/69
Couple of options here, and I don't love this one but I figured I'd put the exploration up anyway.
We need a value of 6px which would mean a token 1.5. Our current naming convention doesn't really support adding a decimal value that isn't zero trailing. i.e. we have space-05 representing 0.5 but space-15 would mean something completely different.
This adds underscore aliases to decimal values that already exist and also adds a value for
space-1_5The other option, since this is a one off would just be to use calc() to get 6px out of the current tokens but we'll still need a decimal solution for borders