Skip to content

Conversation

@BinaryMuse
Copy link
Contributor

className is a default DOM-level prop in React, and it feels wrong to omit this since it's possible in vanilla JS to pass this.

css is exposed via styled-components, but only works with the Babel plugin, which rewrites any element with a css prop and converts it into a proper styled-component component. See https://styled-components.com/docs/api#css-prop for more information.

Merge checklist

  • Added or updated TypeScript definitions (index.d.ts) if necessary

`className` is a default DOM-level prop in React, and it feels wrong to
omit this since it's possible in vanilla JS to pass this.

`css` is exposed via styled-components, but only works with the Babel
plugin, which rewrites any element with a `css` prop and converts it
into a proper styled-component component. See
https://styled-components.com/docs/api#css-prop for more information.
@BinaryMuse BinaryMuse requested review from dmarcey and emplums March 23, 2020 18:43
@vercel
Copy link

vercel bot commented Mar 23, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/primer/primer-components/ip2e7d75h
✅ Preview: https://primer-components-git-mkt-add-classname-and-css.primer.now.sh

@emplums emplums changed the base branch from master to minor March 23, 2020 20:16
Copy link
Contributor

@dmarcey dmarcey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 thanks for the quick turn around @BinaryMuse !

@vercel vercel bot temporarily deployed to Preview March 23, 2020 21:38 Inactive
Copy link

@emplums emplums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 it 💕

@BinaryMuse BinaryMuse merged commit 4ca1186 into minor Mar 23, 2020
@BinaryMuse BinaryMuse deleted the mkt/add-classname-and-css branch March 23, 2020 22:01
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.

4 participants