Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Use a react button to spread styled-component props #2771

Merged
merged 19 commits into from
Dec 5, 2019

Conversation

AlistairGempf
Copy link
Contributor

@AlistairGempf AlistairGempf commented Dec 4, 2019

Resolves #NUMBER

Overall change: Use a react button to spread styled-component props, preventing styled-components from filtering it out as a non-standard attribute. This is required for the on attribute required for the Amp Menu Button. For some reason this only happens on the SSR though, so it doesn't show up as missing on any of the tests or storybook, only once we try and pull it into Simorgh.

Code changes:

  • Use a react button to spread styled-component props

  • I have assigned myself to this PR and the corresponding issues
  • Automated jest tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

@AlistairGempf AlistairGempf added the ws-home Tasks for the WS Home Team label Dec 4, 2019
@AlistairGempf AlistairGempf self-assigned this Dec 4, 2019
@tochwill tochwill mentioned this pull request Dec 5, 2019
3 tasks
@tochwill tochwill merged commit c22ffca into latest Dec 5, 2019
@amywalkerdev amywalkerdev deleted the on-attribute-spreading branch December 11, 2019 09:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ws-home Tasks for the WS Home Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants