stevesims / govuk-frederic

https://stevesims.github.io/govuk-frederic/
MIT License
3 stars 1 forks source link

Ensure that props are spread onto all the components #49

Closed taranchauhan closed 6 years ago

taranchauhan commented 6 years ago

Ensure that all props are spread on all the components like so...

const LeadParagraph = props => <StyledParagraph {...props} />;

This is so we automatically allow props such as className and mb for example to be passed down to the component as attributes.

gavinorland commented 6 years ago

👍 I'll take this and check all components are doing it. Not relishing spending another few hours lodged on something like this!

gavinorland commented 6 years ago

Closing this following https://github.com/stevesims/govuk-frederic/pull/51, however https://github.com/stevesims/govuk-frederic/issues/56 has been opened for consideration.