From 097edfcac7617ded4602294663deef6a3d8af5b7 Mon Sep 17 00:00:00 2001 From: u Date: Sat, 15 Jul 2023 14:52:52 +0100 Subject: [PATCH] Fix: Inconsistent link hover behaviour (#3972) Because: * We were only removing the underline on hover for external links. This resulted in some links sections having links with different hover behaviour. * I think this rule was added so the links in headings wouldn't display an underline on hover - but it doesn't seem to be needed anymore. https://github.com/TheOdinProject/theodinproject/assets/7963776/4b43c711-4674-4679-ba5d-2f34f8868451 This commit: * Removes the http matcher regex from the lesson content link selector. --- app/javascript/stylesheets/lesson-content.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/stylesheets/lesson-content.css b/app/javascript/stylesheets/lesson-content.css index 2de7946f71..adbd62e4cc 100644 --- a/app/javascript/stylesheets/lesson-content.css +++ b/app/javascript/stylesheets/lesson-content.css @@ -78,7 +78,7 @@ @apply mt-0; } - .lesson-content a[href^="http"] { + .lesson-content a { @apply hover:no-underline; }