Skip to content

Commit

Permalink
[ASL-4595] Use govuk list styles for markdown lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-horton-ho-sas committed Feb 3, 2025
1 parent c841c36 commit b91f2fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ukhomeoffice/asl-components",
"version": "13.7.0",
"version": "13.8.0",
"description": "React components for ASL layouts and elements",
"main": "src/index.jsx",
"styles": "styles/index.scss",
Expand Down
6 changes: 5 additions & 1 deletion src/markdown/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ function RenderLink({ href, children }) {
function RenderLinkReference({ children }) {
return <Fragment>[{ children }]</Fragment>;
}
function RenderUnorderedList({ children }) {
return <ul className='govuk-list govuk-list--bullet'>{children}</ul>;
}

const components = {
link: RenderLink,
linkReference: RenderLinkReference
linkReference: RenderLinkReference,
ul: RenderUnorderedList,
};

// eslint-disable-next-line no-unused-vars
Expand Down

0 comments on commit b91f2fe

Please sign in to comment.