From 22e2f47b20e32c05065ee10e5a48fac4f7d47a4c Mon Sep 17 00:00:00 2001 From: Jani Kraner Date: Thu, 14 Nov 2024 10:00:56 +0000 Subject: [PATCH 1/2] Disable focus outline on navigation link As we already apply a focus state to the link child element, there is no need for an additional focus outline on the link itself that User Agents apply as default --- lib/assets/stylesheets/modules/_toc.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/assets/stylesheets/modules/_toc.scss b/lib/assets/stylesheets/modules/_toc.scss index 921c5abf..fb883dcc 100644 --- a/lib/assets/stylesheets/modules/_toc.scss +++ b/lib/assets/stylesheets/modules/_toc.scss @@ -43,6 +43,7 @@ a:focus { text-decoration: none; + outline: none; span { @include govuk-focused-text; From b287617a52219e98eaa57156edc0036d1fab2a87 Mon Sep 17 00:00:00 2001 From: Jani Kraner Date: Thu, 14 Nov 2024 10:03:44 +0000 Subject: [PATCH 2/2] Add to CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5879461..1702d714 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## Unreleased +- [Disable focus outline on navigation link](https://github.com/alphagov/tech-docs-gem/pull/379) ## 4.1.0