Skip to content

Commit da49a8c

Browse files
Fix for reverse button in hero (#1292)
1 parent 9c96464 commit da49a8c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ After:
208208
We've made fixes to NHS.UK frontend in the following pull requests:
209209

210210
- [#1258: Fix text input with prefix/suffix focus and width](https://github.com/nhsuk/nhsuk-frontend/pull/1258)
211+
- [#1292: Fix for reverse buttons within Hero components](https://github.com/nhsuk/nhsuk-frontend/pull/1292)
211212

212213
## 9.4.1 - 22 April 2025
213214

app/components/hero/hero-with-html.njk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
{{ button({
1515
text: "Sign up",
16-
classes: "nhsuk-button--reverse"
16+
classes: "nhsuk-button--reverse",
17+
href: "#"
1718
}) }}
1819
{% endcall %}
1920
{% endblock %}

packages/components/hero/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
@include print-color($nhsuk-print-text-color);
2020

21-
a {
21+
.nhsuk-link,
22+
a:not(.nhsuk-button) {
2223
@include nhsuk-link-style-white;
2324
}
2425

0 commit comments

Comments
 (0)