-
Notifications
You must be signed in to change notification settings - Fork 535
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
Add contrast prop to TextInput #1083
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/ExvngBLQeeriFyF5GMZ5aXNDu2CQ |
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. Just left one comment about curly braces.
src/TextInput.tsx
Outdated
${props => | ||
props.contrast && | ||
css` | ||
background-color: ${get('colors.gray.0')}; | ||
} | ||
`} |
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.
Seems like there's one too many brackets here. It's interesting that it sill works
${props => | |
props.contrast && | |
css` | |
background-color: ${get('colors.gray.0')}; | |
} | |
`} | |
${props => | |
props.contrast && | |
css` | |
background-color: ${get('colors.gray.0')}; | |
`} |
This PR is a quick addition to the TextInput as requested in #1081
Closes #1081
Screenshots
Please provide before/after screenshots for any visual changes
Merge checklist
index.d.ts
) if necessaryTake a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.