@@ -112,7 +112,7 @@ export function SidebarAdmin({
112
112
</ SidebarMenuButton >
113
113
</ DropdownMenuTrigger >
114
114
< DropdownMenuContent
115
- className = "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
115
+ className = "w-[--radix-dropdown-menu-trigger-width] min-w-60 rounded-lg"
116
116
align = "start"
117
117
side = "bottom"
118
118
sideOffset = { 4 }
@@ -180,7 +180,7 @@ export function SidebarAdmin({
180
180
< SidebarMenuButton tooltip = "Program Managers" asChild >
181
181
< NavLink
182
182
to = { `/org/program/${ activeProgram ?. id } /user` }
183
- className = "aria-current:bg-sidebar-accent aria-current:font-bold"
183
+ className = "aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
184
184
>
185
185
< UsersIcon />
186
186
< span > Program Managers</ span >
@@ -191,7 +191,7 @@ export function SidebarAdmin({
191
191
< SidebarMenuButton tooltip = "Program Settings" asChild >
192
192
< NavLink
193
193
to = { `/org/program/${ activeProgram ?. id } /settings` }
194
- className = "aria-current:bg-sidebar-accent aria-current:font-bold"
194
+ className = "aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
195
195
>
196
196
< Settings />
197
197
< span > Settings</ span >
@@ -200,7 +200,10 @@ export function SidebarAdmin({
200
200
</ SidebarMenuItem >
201
201
< SidebarMenuItem >
202
202
< SidebarMenuButton tooltip = "Social Media" asChild >
203
- < NavLink to = { `/org/program/${ activeProgram ?. id } /social` } >
203
+ < NavLink
204
+ to = { `/org/program/${ activeProgram ?. id } /social` }
205
+ className = "aria-[current]:bg-sidebar-accent aria-[current]:font-bold"
206
+ >
204
207
< Share2 />
205
208
< span > Social Media</ span >
206
209
</ NavLink >
@@ -218,7 +221,7 @@ export function SidebarAdmin({
218
221
to = { `/org/program/${ activeProgram ?. id } /batch/${
219
222
activeBatchId ? activeBatchId + "/certificates" : ""
220
223
} `}
221
- className = "aria-current:bg-sidebar-accent aria-current:font-bold"
224
+ className = "aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
222
225
>
223
226
< FileBadge />
224
227
< span > Batches</ span >
@@ -233,7 +236,7 @@ export function SidebarAdmin({
233
236
? `/org/program/${activeProgram?.id}/batch/${activeBatchId}/import`
234
237
: `/org/program/${activeProgram?.id}/batch/create`
235
238
}
236
- className="aria-current:bg-sidebar-accent aria-current:font-bold"
239
+ className="aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
237
240
>
238
241
<FileUp />
239
242
<span>Import</span>
@@ -244,7 +247,7 @@ export function SidebarAdmin({
244
247
< SidebarMenuButton tooltip = "PDF Templates" asChild >
245
248
< NavLink
246
249
to = { `/org/program/${ activeProgram ?. id } /templates/` }
247
- className = "aria-current:bg-sidebar-accent aria-current:font-bold"
250
+ className = "aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
248
251
>
249
252
< FilePen className = "w-6 h-6" size = { 24 } />
250
253
< span > Templates</ span >
@@ -276,7 +279,7 @@ export function SidebarAdmin({
276
279
< SidebarMenuButton tooltip = "Organisation Settings" asChild >
277
280
< NavLink
278
281
to = { `/org/settings` }
279
- className = "aria-current:bg-sidebar-accent aria-current:font-bold"
282
+ className = "aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
280
283
>
281
284
< Home />
282
285
< span > Organisation</ span >
@@ -287,7 +290,7 @@ export function SidebarAdmin({
287
290
< SidebarMenuButton tooltip = "User" asChild >
288
291
< NavLink
289
292
to = { `/org/user` }
290
- className = "aria-current:bg-sidebar-accent aria-current:font-bold"
293
+ className = "aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
291
294
>
292
295
< UsersIcon />
293
296
< span > User</ span >
@@ -298,7 +301,7 @@ export function SidebarAdmin({
298
301
< SidebarMenuButton tooltip = "Typefaces" asChild >
299
302
< NavLink
300
303
to = { `/org/typeface` }
301
- className = "aria-current:bg-sidebar-accent aria-current:font-bold"
304
+ className = "aria-[ current] :bg-sidebar-accent aria-[ current] :font-bold"
302
305
>
303
306
< BookType />
304
307
< span > Typefaces</ span >
@@ -340,9 +343,9 @@ export function SidebarAdmin({
340
343
</ SidebarMenuButton >
341
344
</ DropdownMenuTrigger >
342
345
< DropdownMenuContent
343
- className = "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
344
- side = "bottom "
345
- align = "end "
346
+ className = "w-[--radix-dropdown-menu-trigger-width] min-w-60 rounded-lg"
347
+ side = "top "
348
+ align = "start "
346
349
sideOffset = { 4 }
347
350
>
348
351
< DropdownMenuLabel className = "p-0 font-normal" >
0 commit comments