From ed8fb032e568f24049933c2b569f615bb85b5979 Mon Sep 17 00:00:00 2001 From: ztimson Date: Fri, 6 Dec 2024 19:16:09 -0500 Subject: [PATCH] Underline anchors on focus --- package.json | 2 +- src/main.scss | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f27010d..f95be6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/css-utils", - "version": "1.1.3", + "version": "1.1.4", "description": "CSS Utility Classes", "readme": "README.md", "scripts": { diff --git a/src/main.scss b/src/main.scss index ce782be..fff4909 100644 --- a/src/main.scss +++ b/src/main.scss @@ -50,8 +50,8 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100); .fix-anchor, .fix:not(.no-anchor-fix) { a, a:not([href]) { color: var(--theme-primary); - &:not(:hover) { text-decoration: none; } - &:hover { text-decoration: underline; } + &:not(:hover):not(:focus) { text-decoration: none; } + &:hover, &:focus { text-decoration: underline; } cursor: pointer; } }