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 the action link inverse option #4277

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions app/views/landing_page/blocks/_action_link.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<%
# Note: using inverse rather than light_text to be consistent
# with other components such as govspeak
light_text = inverse || false
%>

<%= render "govuk_publishing_components/components/action_link", {
light_text:,
inverse:,
text: block.data["text"],
href: block.data["href"]
} %>
2 changes: 1 addition & 1 deletion lib/data/landing_page_content_items/landing_page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ blocks:
<h2>This is a heading</h2>
<p>Lorem ipsum...</p>
- type: action_link
text: "See the missions"
text: "See the tasks"
href: "todo"
- type: featured
image:
Expand Down