newscorp-ghfb / NewsKit

The NewsKit Design system
https://newskit.co.uk
Other
130 stars 14 forks source link

feat(TMR-1285): nonce prop to Tealium component #916

Closed tbradbury closed 1 year ago

tbradbury commented 1 year ago

https://nidigitalsolutions.jira.com/browse/TMR-1282

What

  1. Background - why this is needed - We are using a Content-Security-Policy in Next.js that stops 3rd party scripts running unless we specify them. To enable Newskit Tealium component to work we need to be able to add a nonce attribute to the inline script.
  2. What did you do - added optional nonce prop to Tealium script
  3. What does the reviewers should expect

I have done:

I have tested manually:

Before:

After:

Who should review this PR:

How to test:

pp-serviceaccount commented 1 year ago

You can preview these changes on: Documentation Site: http://ncu-newskit-docs-pr.s3-website-eu-west-1.amazonaws.com/tmr-1285-script Storybook: http://ncu-newskit-docs-pr.s3-website-eu-west-1.amazonaws.com/tmr-1285-script/storybook