trussworks / react-uswds

USWDS 3.0 components built in React
https://trussworks.github.io/react-uswds/
Apache License 2.0
183 stars 81 forks source link

Button component doesn't accept className prop when consumed #2933

Closed cassandradanger closed 4 months ago

cassandradanger commented 4 months ago

https://github.com/trussworks/react-uswds/blob/3e6f1cbab726baae23403d103115e3946eeafe10/src/components/Button/Button.tsx#L4C13-L4C24

I've been running into an issue when consuming this button component via the CDS library, and it's not acknowledging styles passed through a className prop - but it does work if I change it to "class" - which then throws a React warning