Skip to content

Feat: toggle mobile side menu#1711

Merged
MarceloRobert merged 1 commit intokernelci:mainfrom
MarceloRobert:feat/toggle-side-menu
Jan 27, 2026
Merged

Feat: toggle mobile side menu#1711
MarceloRobert merged 1 commit intokernelci:mainfrom
MarceloRobert:feat/toggle-side-menu

Conversation

@MarceloRobert
Copy link
Collaborator

Changes

  • Adds a toggle in the top bar to show the side menu as a drawer
  • Refactors side menu to make it reusable between fixed position and drawer
  • Also makes the main page have less horizontal padding when in mobile

How to test

Go to any page, use the Responsive Design Mode in the browser, and change the resolution of the screen. After md, the sidebar should vanish and a toggle should appear in the TopBar.
All links should still be working correctly, and the design of the pages should not break.

Examples:

Before:
image

After:
image

Mobile SideMenu (drawer):
image

Closes #1415

@MarceloRobert MarceloRobert self-assigned this Jan 23, 2026
@MarceloRobert MarceloRobert added the Frontend Most or all of the changes for this issue will be in the frontend code. label Jan 23, 2026
Comment on lines 32 to 41
<DrawerContent className="bg-bg-secondary fixed inset-y-0 right-auto left-0 mt-0 h-full w-auto overflow-y-auto border-none pb-12 [&>div:first-child]:hidden">
<DrawerHeader className="sr-only">
<DrawerTitle>
{formatMessage({ id: 'sidemenu.descriptor' })}
</DrawerTitle>
</DrawerHeader>
<SideMenuContent onLinkClick={onClose} />
</DrawerContent>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add a description here or the application will be warning about it missing:

Warning: Missing Description or aria-describedby={undefined} for {DialogContent}.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks for noticing that

@gustavobtflores
Copy link
Contributor

also, what do you think about adding a close button with a 'X' icon in the drawer?

@MarceloRobert
Copy link
Collaborator Author

also, what do you think about adding a close button with a 'X' icon in the drawer?

I don't think it's necessary, clicking anywhere outside of the menu will already close the drawer

Adds a toggle in the top bar to show the side menu as a drawer

Closes kernelci#1415
Copy link
Contributor

@gustavobtflores gustavobtflores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MarceloRobert MarceloRobert added this pull request to the merge queue Jan 27, 2026
Merged via the queue into kernelci:main with commit b8e4e57 Jan 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Most or all of the changes for this issue will be in the frontend code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace side menu with a toggle on small screens

2 participants