Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix single line formatting of call to action component #302

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

jkempster34
Copy link
Contributor

@jkempster34 jkempster34 commented Jan 24, 2024

https://trello.com/c/iRNwQY9I

We use the default mechanism for parsing the call to action component so that
the parser handles abbreviations and footnotes within.

Since this change (#292) we have seen a regression where defining a call to
action on a single line does not work as expected (e.g., $CTA Click here to start the program $CTA). The closing div is evaluated as markdown and the
call to action component therefore runs on until the next closing div.

This can be fixed by adding in some new lines between the div tags.

Before recent changes (version 8.2.1) Current (version 8.3.2) This PR
image image image
image image image
image image image
image image image

This repo is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

@jkempster34 jkempster34 changed the title Fix CTA same line?? Fix single line formatting of call to action component Jan 24, 2024
@jkempster34 jkempster34 force-pushed the cta-same-line branch 4 times, most recently from cfa94da to 88b8967 Compare January 24, 2024 11:15
CHANGELOG.md Outdated Show resolved Hide resolved
We use the default mechanism for parsing the call to action component so that
the parser handles abbreviations and footnotes within.

Since this change (#292) we have seen a regression where defining a call to
action on a single line does not work as expected (e.g., `$CTA Click here to
start the program $CTA`). The closing `div` is evaluated as markdown and the
call to action component therefore runs on until the next closing `div`.

This can be fixed by adding in some new lines between the div tags.
@jkempster34 jkempster34 enabled auto-merge January 24, 2024 11:32
@jkempster34 jkempster34 merged commit fba780e into main Jan 24, 2024
9 checks passed
@jkempster34 jkempster34 deleted the cta-same-line branch January 24, 2024 11:33
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