Skip to content

Commit 9f02b80

Browse files
authored
Merge pull request #606 from Nikhilrsingh/navbar-hover-effect
✨ Enhancement: Added Hover Effects to Navbar Items
2 parents e1f6d8f + 6eff64b commit 9f02b80

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ <h2>Loading<span class="dots"></span></h2>
109109
aria-label="Toggle navigation">
110110
<span class="navbar-toggler-icon"></span>
111111
</button>
112+
<!-- ================================ issue #605 Starts Here ================================ -->
112113
<div class="collapse navbar-collapse" id="navbarSupportedContent">
113114
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
114115
<li class="nav-item">
115-
<a class="nav-link active" aria-current="page" href="#top">Home</a>
116+
<a class="nav-link" aria-current="page" href="#top">Home</a>
116117
</li>
117118
<li class="nav-item">
118119
<a class="nav-link" href="#challengeSection">Challenges</a>
@@ -128,6 +129,7 @@ <h2>Loading<span class="dots"></span></h2>
128129
</li>
129130
</ul>
130131
</div>
132+
<!-- ================================ issue #605 Ends Here ================================ -->
131133
</div>
132134
</nav>
133135
</header>

styles/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ html {
2323
color: #2563eb;
2424
}
2525

26-
.navbar-brand:hover {
26+
.navbar-brand,.nav-link:hover { /*========added for issue #605========*/
2727
color: #2563eb;
2828
nav {
2929
position: fixed;

0 commit comments

Comments
 (0)