- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
          Add experimental to colour aliases
          #9312
        
          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
67bdac9    to
    5137586      
    Compare
  
    | | 'bg-transparent-active' | ||
| | 'bg-inverse-transparent-hover' | ||
| | 'bg-inverse-transparent-active'; | ||
| | 'experimental-subdued-link' | 
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.
I didn't extract this in the ColorTextAlias because i'm not sure if its a text token
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.
I think this was added as more of a test to make sure the new tokens were being generated properly. If it's not used we can remove it for now, rename ColorExperimentalAlias to ColorExperimentalBackgroundAlias and remove the extract above which I think would be cleaner. We'll add another group for experimental text colors when they're ready  in figma
experimental to colour aliases
      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 but I think we can  remove subdued-link for now and clean up ColorBackgroundAlias
| | 'bg-transparent-active' | ||
| | 'bg-inverse-transparent-hover' | ||
| | 'bg-inverse-transparent-active'; | ||
| | 'experimental-subdued-link' | 
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.
I think this was added as more of a test to make sure the new tokens were being generated properly. If it's not used we can remove it for now, rename ColorExperimentalAlias to ColorExperimentalBackgroundAlias and remove the extract above which I think would be cleaner. We'll add another group for experimental text colors when they're ready  in figma
c8024f3    to
    def7e5e      
    Compare
  
    <!-- ☝️How to write a good PR title: - Prefix it with [ComponentName] (if applicable), for example: [Button] - Start with a verb, for example: Add, Delete, Improve, Fix… - Give as much context as necessary and as little as possible - Prefix it with [WIP] while it’s a work in progress --> ### WHY are these changes introduced? prefixing the `experimental` keyword on the color Aliases allows us to use the experimental tokens where the Alias types are used. For example, on the [Box component](https://polaris.shopify.com/components/layout-and-structure/box) you could now use the experimental tokens as a background without type errors. ``` <Box background={'experimental-bg-input-hover'} /> ```
<!-- ☝️How to write a good PR title: - Prefix it with [ComponentName] (if applicable), for example: [Button] - Start with a verb, for example: Add, Delete, Improve, Fix… - Give as much context as necessary and as little as possible - Prefix it with [WIP] while it’s a work in progress --> ### WHY are these changes introduced? prefixing the `experimental` keyword on the color Aliases allows us to use the experimental tokens where the Alias types are used. For example, on the [Box component](https://polaris.shopify.com/components/layout-and-structure/box) you could now use the experimental tokens as a background without type errors. ``` <Box background={'experimental-bg-input-hover'} /> ```
WHY are these changes introduced?
prefixing the
experimentalkeyword on the color Aliases allows us to use the experimental tokens where the Alias types are used. For example, on the Box component you could now use the experimental tokens as a background without type errors.