File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 209209 }
210210
211211 .menu-button : is (: active , : hover , : focus-visible ) {
212+ background : color-mix (in srgb, var (--primary ) 30% , transparent) !important ;
212213 --active : 1 ;
213214 }
214215
Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ import { NavbarLinks } from "@/utils/constants";
2424 </button >
2525 <Navigation pages ={ NavbarLinks } />
2626 <div class =" actions" >
27- <button class =" menu-button minimize-toggle" aria-label =" Toggle menu size" >
27+ <button class =" menu-button minimize-toggle" aria-label =" Toggle menu size" title = " Close sidebar " >
2828 <ArrowIcon
2929 width ={ 24 }
3030 height ={ 24 }
3131 style ={ {
3232 transform: " rotate(-135deg)"
3333 }}
34+ title =" Toggle sidebar"
3435 />
3536 </button >
3637 <button class =" menu-button theme-toggle" >
@@ -106,8 +107,10 @@ import { NavbarLinks } from "@/utils/constants";
106107
107108 const toggleMinimize = () => {
108109 const nav = document.querySelector("#nav");
110+ const minimizeBtn = document.querySelector(".minimize-toggle") as HTMLButtonElement;
109111 nav?.classList.toggle("minimized");
110112 minimizeBtn?.classList.toggle("rotated");
113+ minimizeBtn.title = nav?.classList.contains("minimized") ? "Open sidebar" : "Close sidebar";
111114 };
112115
113116 minimizeBtn?.addEventListener("click", toggleMinimize);
You can’t perform that action at this time.
0 commit comments