ONSdigital / design-system

ONS Design System
https://service-manual.ons.gov.uk/design-system
MIT License
31 stars 21 forks source link

[Bug]: DS components not compatible with Jinja #3381

Closed precious-onyenaucheya-ons closed 1 month ago

precious-onyenaucheya-ons commented 1 month ago

Describe the bug

The following components are failing in the Jinja environment because string and integer concatenation using the + operator is not supported. To resolve this issue, we need to replace the + with the ~ operator for concatenation:

details document-list panel share-page summary tabs timeline

Expected behaviour / outcome

The examples should work similarly to the design system.

List the steps necessary to reproduce the bug

Clone design-system-python-flask-demo branch, checkout to the https://github.com/ONSdigital/design-system-python-flask-demo/pull/6 branch, then run the make run command. Check that the above listed component are not failing

Additional context

No response

What version of the ONS Design System are you using?

70.0.17

What device(s) are you using?

Desktop

What operating system(s) are you using?

macOS

What browser(s) are you using?

Chrome