Skip to content

Commit b36be88

Browse files
committed
add a11y upgrades
1 parent 7e5fcb4 commit b36be88

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

assets/scss/components/_testimonials.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
background-color: $primary;
121121
opacity: 0.5;
122122
transition: all 0.3s ease;
123+
/* Increase touch target for accessibility (WCAG 2.5.5) */
124+
padding: 19px;
125+
background-clip: content-box;
126+
/* Total touch target: 10px + (19px * 2) = 48x48px */
123127

124128
&-active {
125129
opacity: 1;
@@ -296,6 +300,10 @@
296300
opacity: 0.3;
297301
transition: all 0.3s ease;
298302
margin: 0 0.3125rem;
303+
/* Increase touch target for accessibility (WCAG 2.5.5) */
304+
padding: 1.1875rem;
305+
background-clip: content-box;
306+
/* Total touch target: 0.625rem (10px) + (1.1875rem * 2) = 3rem (48px) */
299307

300308
&-active {
301309
opacity: 1;

0 commit comments

Comments
 (0)