Skip to content

Commit 31e5e20

Browse files
committed
improve a11y
1 parent b36be88 commit 31e5e20

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

assets/scss/components/_blog-carousel.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@
3636
background-color: #0d4365;
3737
color: $white;
3838
}
39+
40+
.blog-meta-text {
41+
/* Using grey color (#5C5A5A) instead of rgba black 50% for better contrast */
42+
/* Contrast ratio: 7.5:1 (meets WCAG AA requirement of 4.5:1) */
43+
color: $grey;
44+
}

layouts/blog/summary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2 class="service-title">
66
<p>
77
{{ .Content | plainify | htmlUnescape | truncate 120 "…" }}
88
<br />
9-
<span class="text-black-50">
9+
<span class="blog-meta-text">
1010
{{ if .Params.AuthorId }}
1111
{{ $authorId := .Params.AuthorId }}
1212
{{ $authorDetails := (index .Site.Data.team $authorId) }}

layouts/partials/testimonials.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2>Testimonials</h2>
1313
<img src="{{ .image | relURL }}" alt="{{ .name }}">
1414
</div>
1515
<div class="testimonial-author">
16-
<h4 class="author-name">{{ .name }}</h4>
16+
<p class="author-name">{{ .name }}</p>
1717
<p class="author-title">{{ .title }} at {{ .company }}</p>
1818
</div>
1919
</div>

0 commit comments

Comments
 (0)