I have exhausted all possible methods to override the issue, including tweaking the CSS, but nothing seems to be working. I am currently utilizing bootstrap 5 for this project.
document.addEventListener("DOMContentLoaded", function() {
const notesButton = document.getElementById('notes');
const tasksButton = document.getElementById('tasks');
notesButton.addEventListener('click', function() {
notesButton.classList.add('active');
tasksButton.classList.remove('active');
});
tasksButton.addEventListener('click', function() {
tasksButton.classList.add('active');
notesButton.classList.remove('active');
});
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c7a5a8a8b3b4b3b5a6b787f2e9f4e9f4">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="73111c1c07000701120333465d405d40">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous></script>
<link rel="stylesheet" href="styles/main.css" />
<title>Trackz</title>
</head>
<header>
<div class="container-fluid mt-3">
<nav class="navbar tabar mx-5">
<div class="container-fluid">
<a class="navbar-brand mx-4 text_color" href="/">
Trackz
</a>
<div class="d-flex">
<a href="/"><button class="btn btn-outline-light mx-2" id="notes">Notes</button></a>
<a href="/Tasks"><button class="btn btn-outline-light mx-2" id="tasks">Tasks</button></a>
</div>
</div>
</nav>
</div>
</header>