Skip to content

Commit

Permalink
Fixes navbar in both light and dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawan-Kushwah committed Oct 28, 2024
1 parent f6f9ed6 commit c6970fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/component/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const Footer = (props) => {
value={email}
onChange={(e) => setEmail(e.target.value)}
required
className="px-4 py-2 border border-gray-300 rounded-md w-full max-w-xs focus:outline-none text-black"
className="px-4 py-2 border border-gray-300 rounded-md w-full max-w-xs focus:outline-non"
/>
<button
type="submit"
Expand Down
2 changes: 1 addition & 1 deletion client/src/component/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function Navbar(props) {
>
<ul className="sidebar-links">
<li>
<Link to="/" onClick={() => setIsSidebarOpen(false)}>{props.home}</Link>
<Link to="/" onClick={() => setIsSidebarOpen(false)} style={{ color: `${props}` }}>{props.home}</Link>
</li>
<li>
<Link to="/about" onClick={() => setIsSidebarOpen(false)}>{props.about}</Link>
Expand Down
2 changes: 0 additions & 2 deletions client/src/css/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@

.sidebar-links a {
text-decoration: none;
color: black !important;
/* Change according to your theme */
font-size: 18px;
}
Expand Down Expand Up @@ -522,7 +521,6 @@
}

.sidebar-links li a {
color: white;
text-decoration: none;
}

Expand Down

0 comments on commit c6970fb

Please sign in to comment.