Skip to content

Commit f7b81a3

Browse files
Stephan Waldclaude
andcommitted
fix: Explicitly handle both http:// and https:// external links (qa-requested)
Fixes: - Updated CSS selectors to explicitly target both http:// and https:// protocols - Changed from a[href^="http"] to a[href^="http://"], a[href^="https://"] - Makes code more self-documenting and explicit about handling both protocols Verified: - CSS syntax valid - Selector matches both http:// and https:// links in resources.md - Both light and dark mode selectors updated QA Fix Session: 0 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 85b51ed commit f7b81a3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/css/custom.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
}
3131

3232
/* External link icon - targets links starting with http:// or https:// */
33-
a[href^="http"]::after {
33+
a[href^="http://"]::after,
34+
a[href^="https://"]::after {
3435
content: "";
3536
display: inline-block;
3637
width: 0.875em;
@@ -43,6 +44,7 @@ a[href^="http"]::after {
4344
}
4445

4546
/* Dark mode external link icon - lighter color for better contrast */
46-
[data-theme='dark'] a[href^="http"]::after {
47+
[data-theme='dark'] a[href^="http://"]::after,
48+
[data-theme='dark'] a[href^="https://"]::after {
4749
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23b4b4b4"><path d="M14 2.5a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0 0 1h4.793L2.146 13.146a.5.5 0 0 0 .708.708L13 3.707V8.5a.5.5 0 0 0 1 0z"/></svg>');
4850
}

0 commit comments

Comments
 (0)