hmrc / hmrc-frontend

Apache License 2.0
9 stars 18 forks source link

PLATUI-2590: Make a link or button print the page without having to write any custom javascript #325

Closed kyle-bowden closed 10 months ago

oscarduignan commented 10 months ago

in the component folder we could add a README.md that quickly explained why we have this component - I know that people can see the jira / github commit message but since jira's days are possibly numbered 🤷‍♂️ maybe something like

we've added this because a lot of services had implemented print links using inline javascript in html attributes that isn't compatible with some new default CSP security config that is recommended for HMRC services. Rather that everyone move the JS to different places / possibly introduce mistakes - this gives us something people can migrate to a bit more easily, and we now have people depending on an interface we can tweak later in one place in the remote chance we need