Skip to content

Commit cb0e68a

Browse files
committed
fix: add hover underline to navbar links
1 parent 370efc4 commit cb0e68a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Header() {
1313
<div className="w-100 h-16">
1414
<nav className="flex items-center justify-between bg-gray-900 h-16 px-8 text-white fixed z-10 top-0 w-full">
1515
<div className="flex items-center flex-shrink-0 text-white">
16-
<a href="/">
16+
<a className="title" href="/">
1717
<h1 className="font-light text-xl tracking-tight flex space-x-4 items-center justify-start">
1818
<img width={24} height={24} src={icon} />{' '}
1919
<span>Testing Playground</span>

src/styles/app.pcss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ body {
1010
overflow-y: scroll;
1111
}
1212

13+
nav a:not(.title):hover {
14+
text-decoration: underline;
15+
}
16+
1317
.footer {
1418
transition: opacity 0.2s ease 0s;
1519
}

0 commit comments

Comments
 (0)