Skip to content

HOFF-2107: Nunjucks Refactoring (improvements)#684

Open
RobertMcCann wants to merge 1 commit into
HOFF-2024-nunjucks-refactoring-mainfrom
HOFF-2107-improve-details-component
Open

HOFF-2107: Nunjucks Refactoring (improvements)#684
RobertMcCann wants to merge 1 commit into
HOFF-2024-nunjucks-refactoring-mainfrom
HOFF-2107-improve-details-component

Conversation

@RobertMcCann

@RobertMcCann RobertMcCann commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Relates HOFF-2107

  • allows HTML to be used in details component to prevent escaping HTML e.g. table in Appeal Rights Exhausted (ARE)
  • amend the govukDetails component to use 'summaryHtml' and 'html' options instead of 'summaryText' and 'text' options to allow both text and html instead of just text.
  • update readme

What?

Why?

How?

Testing?

Screenshots (optional)

Anything Else? (optional)

Check list

Dependabot PRs: JIRA branch/commit checklist items below do not apply to bot-generated dependency update pull requests.

  • I have reviewed my own pull request for linting issues (e.g. adding new lines)
  • I have written tests (if relevant)
  • I have created a JIRA number for my branch
  • I have created a JIRA number for my commit
  • I have followed the chris beams method for my commit https://cbea.ms/git-commit/
    here is an example commit
  • Ensure workflow jobs are passing especially tests
  • I will squash the commits before merging

…d in details component

- amend the govukDetails component to use 'summaryHtml' and 'html' options instead of 'summaryText' and 'text' options to allow both text and html instead of just text.
- update readme
@RobertMcCann

Copy link
Copy Markdown
Contributor Author

Without allowing HTML in details component
Screenshot 2026-06-22 at 10 41 16

@RobertMcCann

Copy link
Copy Markdown
Contributor Author

With updated code changes to include HTML in details:
Screenshot 2026-06-22 at 11 05 27

Screenshot 2026-06-22 at 11 05 41

@RobertMcCann
RobertMcCann requested a review from dk4g June 22, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants