Add icon hover color.

This commit is contained in:
Arne Pedersen
2022-12-28 15:03:00 +01:00
parent 3e40467c25
commit eaca25bd81
2 changed files with 8 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ export function Header() {
if (currentTheme === "dark") { if (currentTheme === "dark") {
return ( return (
<button onClick={() => setTheme("light")}> <button onClick={() => setTheme("light")} className="icon-hover">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24" viewBox="0 0 24 24"
@@ -37,7 +37,7 @@ export function Header() {
) )
} else { } else {
return ( return (
<button onClick={() => setTheme("dark")}> <button onClick={() => setTheme("dark")} className="icon-hover">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24" viewBox="0 0 24 24"
@@ -65,11 +65,11 @@ export function Header() {
>FAQ >FAQ
</Link> */} </Link> */}
<a href="https://github.com/vilm3r/sendstr-web"> <a href="https://github.com/vilm3r/sendstr-web">
<DiGithubBadge className="inline text-3xl" title="Github" /> <DiGithubBadge className="inline text-3xl icon-hover" title="Github" />
</a> </a>
<Link href="/settings"> <Link href="/settings">
<div className="cursor-pointer"> <div className="cursor-pointer">
<MdSettings className="inline text-2xl" title="Settings" /> <MdSettings className="inline text-2xl icon-hover" title="Settings" />
</div> </div>
</Link> </Link>
{renderThemeToggle()} {renderThemeToggle()}

View File

@@ -33,4 +33,8 @@
.btn-main { .btn-main {
@apply bg-primary rounded-md px-6 py-3 w-full h-full shadow text-gray-100 dark:text-gray-900 font-semibold @apply bg-primary rounded-md px-6 py-3 w-full h-full shadow text-gray-100 dark:text-gray-900 font-semibold
} }
.icon-hover {
@apply transition duration-300 hover:text-primary
}
} }