From 9ccb06531f61b0524e03aa3f4b8d0a70363b2a2d Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 13 Sep 2021 00:32:05 +0100 Subject: [PATCH] fix: ToC tap target size (Lighthouse) --- wowchemy/assets/scss/wowchemy/layouts/_book.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wowchemy/assets/scss/wowchemy/layouts/_book.scss b/wowchemy/assets/scss/wowchemy/layouts/_book.scss index b5819329..2700aca1 100644 --- a/wowchemy/assets/scss/wowchemy/layouts/_book.scss +++ b/wowchemy/assets/scss/wowchemy/layouts/_book.scss @@ -238,15 +238,16 @@ ul.toc-top { #TableOfContents li { display: block; + margin-bottom: 8px; // Lighthouse: tap targets must be at least 8px apart } #TableOfContents li a, .toc-top li a { display: block; padding: 0 1.5rem; // Override default padding - margin-bottom: 8px; // Lighthouse: tap targets must be at least 8px apart color: rgba(0, 0, 0, 0.65); - font-size: 0.7rem; + line-height: 1.75; // Lighthouse: min tap target size + font-size: 16px; // Lighthouse: min tap target size } .dark #TableOfContents li a,