Skip to content

Commit

Permalink
Ensure all ids are unique in HTML navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlostorto committed Oct 31, 2023
1 parent 990bb54 commit 5afb594
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function getRelativePath($absolutePath, $parentTraversals) {
background-color: var(--secondary);
}

#navbar-desktop ul li a#contact:hover {
#navbar-desktop ul li a.contact:hover {
background-color: var(--tertiary);
}

Expand Down Expand Up @@ -124,7 +124,7 @@ function getRelativePath($absolutePath, $parentTraversals) {
background-color: var(--secondary);
}

#navbar-links-mobile li a#contact:hover {
#navbar-links-mobile li a.contact:hover {
background-color: var(--tertiary);
}

Expand Down Expand Up @@ -155,7 +155,7 @@ function getRelativePath($absolutePath, $parentTraversals) {
<li><a href="/photography/">home</a></li>
<li><a href="/photography/about/">about</a></li>
<li><a href="/photography/albums/">albums</a></li>
<li><a id="contact" href="/photography/contact/">contact</a></li>
<li><a class="contact" href="/photography/contact/">contact</a></li>
</ul>
</nav>
<nav id="navbar-mobile" class="position-absolute w-100 d-flex flex-row align-items-center justify-content-between">
Expand All @@ -172,5 +172,5 @@ function getRelativePath($absolutePath, $parentTraversals) {
<li><a href="/photography/">home</a></li>
<li><a href="/photography/about/">about</a></li>
<li><a href="/photography/albums/">albums</a></li>
<li><a id="contact" href="/photography/contact/">contact</a></li>
<li><a class="contact" href="/photography/contact/">contact</a></li>
</ul>

0 comments on commit 5afb594

Please sign in to comment.