Skip to content

Commit f96b614

Browse files
Update design of timeline component to include programmes
1 parent 161377b commit f96b614

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

app/assets/stylesheets/components/_timeline.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,19 @@ $_timeline-border-width: 2px;
124124
}
125125

126126
&__description {
127-
padding-top: 0;
127+
padding-top: nhsuk-spacing(1);
128128
color: $nhsuk-secondary-text-colour;
129129

130-
@include nhsuk-responsive-margin(2, "bottom");
130+
@include nhsuk-responsive-margin(3, "bottom");
131131
@include nhsuk-font-size(16);
132132
}
133+
134+
.nhsuk-tag {
135+
border-color: inherit;
136+
color: inherit;
137+
138+
&:last-of-type {
139+
margin-right: nhsuk-spacing(2);
140+
}
141+
}
133142
}

app/assets/stylesheets/core/elements/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ blockquote {
44
margin-left: 0;
55
padding: nhsuk-spacing(2);
66
padding-left: nhsuk-spacing(3);
7-
border-left: $nhsuk-border-width solid $nhsuk-brand-colour;
7+
border-left: $nhsuk-border-width solid $nhsuk-border-colour;
88

99
@include nhsuk-responsive-margin(4, "bottom");
1010
@include nhsuk-responsive-margin(2, "top");

app/globals.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ export default () => {
110110
headingText: formatMarkdown(auditEvent.name),
111111
isPastItem: auditEvent.isPastEvent,
112112
html: auditEvent.formatted?.note,
113-
description: filters.safe(auditEvent.formatted.createdAtAndBy)
113+
description: filters.safe(
114+
auditEvent.formatted.programmes + auditEvent.formatted.createdAtAndBy
115+
)
114116
})
115117
}
116118

0 commit comments

Comments
 (0)