Skip to content

Conversation

colebemis
Copy link
Contributor

The no-deprecated-colors rule can now find deprecated colors in the following cases:

  • Nested sx properties:

    <Box sx={{'&:hover': {bg: 'bg.primary'}}}>
  • Functions in sx prop:

    <Box sx={{boxShadow: theme => `0 1px 2px ${theme.colors.text.primary}`}}>

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2021

🦋 Changeset detected

Latest commit: dd14594

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-primer-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@colebemis colebemis requested a review from jonrohan September 20, 2021 17:12
@colebemis colebemis merged commit 56557b4 into main Sep 20, 2021
@primer-css primer-css mentioned this pull request Sep 20, 2021
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.

2 participants