Skip to content

Commit

Permalink
use buttons to prevent translation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreKoepke committed Feb 22, 2025
1 parent bbc3bee commit 4ddf6ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

<div class="navbar">
@for (route of routes; track route.link) {
<a [class.active]="activeRoute() == route.link"
<button type="button" [class.active]="activeRoute() == route.link"
(click)="clickMenuItem(route.link)"
(touchstart)="clickMenuItem(route.link)">
{{ route.text }}
</a>
</button>
}
</div>
6 changes: 4 additions & 2 deletions frontend/src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@
}

/* Navbar links */
.navbar a {
.navbar button {
float: left;
text-align: center;
padding: 12px;
background-color: gray;
border-style: none;
color: white;
text-decoration: none;
font-size: 17px;
cursor: pointer;
}

/* Navbar links on mouse-over */
.navbar a:hover {
.navbar button:hover {
background-color: #000;
}

Expand Down

0 comments on commit 4ddf6ee

Please sign in to comment.