Skip to content

Commit 2070625

Browse files
section description fix for leadership template (#17020)
1 parent e646118 commit 2070625

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

bedrock/mozorg/templates/mozorg/cms/about/leadership.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ <h1 class="visually-hidden">{{ page.title }}</h1>
4242
<section class="leadership-section" id="{{ section.value.id }}">
4343
{% set first_group = section.value.leadership_group[0] %}
4444
<h2 class="leadership-title{% if first_group.title %} compact{% endif %}">{{ section.value.title }}</h2>
45-
{% if first_group.description %}
46-
<p class="leadership-description">{{ first_group.description }}</p>
45+
{% if section.value.description %}
46+
<p class="leadership-description">{{ section.value.description }}</p>
4747
{% endif %}
4848

4949
{% for group in section.value.leadership_group %}

media/css/mozorg/leadership.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,22 @@
8080
&.compact {
8181
border-bottom: 0;
8282
padding-bottom: 0;
83-
margin-bottom: 0;
83+
margin-bottom: $spacing-sm;
8484
}
8585
}
8686

87+
.leadership-description {
88+
@include text-body-lg;
89+
margin-top: 0;
90+
margin-bottom: $spacing-lg;
91+
}
92+
93+
.group-description {
94+
@include text-body-md;
95+
margin-top: 0;
96+
margin-bottom: $spacing-md;
97+
}
98+
8799
.leadership-section {
88100
scroll-margin-top: $layout-sm;
89101

0 commit comments

Comments
 (0)