From b3ce9c1ec8227758affd3a6ae2a69d7715671ebf Mon Sep 17 00:00:00 2001 From: Barbara Peric Date: Mon, 1 Apr 2024 09:30:21 +0200 Subject: [PATCH] improve color contrast for accessibility purpose --- components/Header.js | 10 ++++-- pages/index.js | 78 +++++++++++++++++++++----------------------- sass/_about.scss | 14 ++++---- sass/_buttons.scss | 4 +-- sass/_footer.scss | 5 +++ sass/_hero.scss | 8 +++-- sass/_search.scss | 2 +- 7 files changed, 66 insertions(+), 55 deletions(-) diff --git a/components/Header.js b/components/Header.js index 569ff89..ee5fb16 100644 --- a/components/Header.js +++ b/components/Header.js @@ -51,7 +51,7 @@ function Header(props) { // trap focus in the burger menu for accessibility purposes const firstFocusableEl = burgerWrapper.querySelector('button:not([disabled])') const lastFocusableEl = burgerWrapper.querySelector('ul li:last-child a') - + burgerWrapper.addEventListener("keydown", e => { if (e.key === 'Tab') { if (e.shiftKey) { @@ -165,8 +165,12 @@ function Header(props) {