Skip to content

Commit e510d31

Browse files
Add tag to header nav (#248)
This would be a way for us to highlight that "Record vaccinations" is a new section. ![Screenshot 2025-03-10 at 11 56 23](https://github.com/user-attachments/assets/d6a71778-6ace-42b1-8511-9c76035ee953)
1 parent 424f683 commit e510d31

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
// This is like the nhsuk-tag--blue variant,
3+
// but without the darker border.
4+
.app-tag--header {
5+
background-color: tint($color_nhsuk-blue, 80%);
6+
border-color: tint($color_nhsuk-blue, 80%);
7+
color: shade($color_nhsuk-blue, 30%);
8+
}

app/assets/sass/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ $govuk-brand-colour: $nhsuk-link-color;
2929
@import 'components/button';
3030
@import 'components/filters';
3131
@import 'components/link';
32+
@import 'components/tag';
3233

3334

3435
@import '../../components/pagination/_pagination';

app/views/includes/header-logged-in-organisation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
url : "/vaccinate",
19-
label : "Record vaccinations",
19+
label : ("Record vaccinations <span class=\"nhsuk-tag app-tag--header nhsuk-u-margin-left-2\">New</span>") | safe,
2020
classes: ("app-header__navigation-item--current" if currentSection == "vaccinate")
2121
},
2222
{

0 commit comments

Comments
 (0)