Skip to content

Commit 481d190

Browse files
authored
Merge pull request #4914 from FlowFuse/4913-heading-aria-read-more
[4913] Accessibility: Heading hierarchy, generic "Read More" & aria-labelledby
2 parents 8127cf0 + 45d2d2a commit 481d190

6 files changed

Lines changed: 19 additions & 17 deletions

File tree

src/_includes/benefits.njk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<div class="flex flex-wrap justify-center mt-12 md:mt-20">
22
<div class="company-value">
33
{% image "./images/pictograms/remote_blue.png", "Icon representing Fully Remote", [128] %}
4-
<h5>Fully Remote</h5>
4+
<h3>Fully Remote</h3>
55
</div>
66
<div class="company-value">
77
{% image "./images/pictograms/vacation_blue.png", "Icon representing Unlimited Vacation", [128] %}
8-
<h5>Unlimited Vacation</h5>
8+
<h3>Unlimited Vacation</h3>
99
</div>
1010
<div class="company-value">
1111
{% image "./images/pictograms/time_blue.png", "Icon representing Flexible Hours", [128] %}
12-
<h5>Flexible Hours</h3>
12+
<h3>Flexible Hours</h3>
1313
</div>
1414
<div class="company-value">
1515
{% image "./images/pictograms/education_blue.png", "Icon representing Education Budget", [128] %}
16-
<h5>Education Budget</h5>
16+
<h3>Education Budget</h3>
1717
</div>
1818
<div class="company-value">
1919
{% image "./images/pictograms/equipment_blue.png", "Icon representing Equipment", [128] %}
20-
<h5>Equipment</h5>
20+
<h3>Equipment</h3>
2121
</div>
2222
<div class="company-value">
2323
{% image "./images/pictograms/parental_leave_blue.png", "Icon representing Paid Parental Leave", [128] %}
24-
<h5>Paid Parental Leave</h5>
24+
<h3>Paid Parental Leave</h3>
2525
</div>
26-
</div>
26+
</div>

src/_includes/blog/pagination.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<nav aria-labelledby="pagination" class="pagination mt-4">
2+
<nav aria-label="Pagination" class="pagination mt-4">
33
<ol class="flex flex-row w-full justify-between text-gray-600">
44
<li class="flex md:flex-initial w-40 justify-start pl-2 ff-nav-blog-p"{% if not pagination.href.previous %} style="opacity: 0; pointer-events: none;"{% endif %}><a href="{{ pagination.href.previous }}">Previous</a></li>
55
<li>

src/_includes/changelog/changelog-posts.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<div class="prose">
2727
{% include "summary.njk" %}
2828
</div>
29-
<a href="{{ item.url }}" class="group-hover:underline">read more...</a>
29+
<a href="{{ item.url }}" class="group-hover:underline" aria-label="Read more about {{ item.data.title }}">read more...</a>
3030
{% else %}
3131
<div class="prose">
3232
{{ item.content | safe }}

src/css/style.page.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,10 @@
381381
width: 128px;
382382
}
383383

384-
.company-value h5 {
384+
.company-value h5,
385+
.company-value h3 {
385386
font-size: 1.25rem;
387+
font-weight: 600;
386388
margin-top: 1rem;
387389
margin-bottom: 3rem;
388390
@apply px-2 md:px-0

src/vs/kepware.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ cta:
112112
{% include section.svgPath %}
113113
</div>
114114
<div class="w-full flex flex-row gap-3 mx-auto md:m-0">
115-
<h5 class="w-full md:m-0">
116-
<div class="text-xl text-gray-600 text-center sm:text-left">{{ section.title }}</div>
117-
</h5>
115+
<h3 class="w-full md:m-0">
116+
<div class="text-xl font-semibold text-gray-600 text-center sm:text-left">{{ section.title }}</div>
117+
</h3>
118118
</div>
119119
</div>
120120
<div>

src/vs/litmus.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ cta:
107107
<div class="mx-auto grid grid-cols-1 md:grid-cols-2 gap-8 text-center md:text-left mb-20">
108108
{% for card in blueCards %}
109109
<div class="p-6 bg-gradient-to-r from-white to-indigo-50 border border-indigo-100 rounded-lg">
110-
<h5 class="text-indigo-600">{{ card.title }}</h5>
110+
<h3 class="text-indigo-600 text-xl font-semibold">{{ card.title }}</h3>
111111
<p>{{ card.content | safe }}</p>
112112
</div>
113113
{% endfor %}
@@ -130,9 +130,9 @@ cta:
130130
</div>
131131
</div>
132132
<div class="w-full flex flex-row gap-3 mx-auto md:m-0">
133-
<h5 class="w-full md:m-0">
134-
<div class="text-xl text-gray-600 text-center sm:text-left">{{ section.title }}</div>
135-
</h5>
133+
<h3 class="w-full md:m-0">
134+
<div class="text-xl font-semibold text-gray-600 text-center sm:text-left">{{ section.title }}</div>
135+
</h3>
136136
</div>
137137
</div>
138138
<div>

0 commit comments

Comments
 (0)