Skip to content

style: improve sidebar navigation UX on tablet/mobile viewports#308

Open
vanshika2720 wants to merge 1 commit into
kmesh-net:mainfrom
vanshika2720:feature/improve-sidebar-navigation
Open

style: improve sidebar navigation UX on tablet/mobile viewports#308
vanshika2720 wants to merge 1 commit into
kmesh-net:mainfrom
vanshika2720:feature/improve-sidebar-navigation

Conversation

@vanshika2720
Copy link
Copy Markdown

[UI/UX] Improve Sidebar Navigation Experience on Tablet/Mobile Devices

Description

This PR enhances the mobile and tablet navigation experience (specifically targeting viewports up to 996px, including the 768px - 996px tablet range) for the Docusaurus collapsible sidebar and mobile drawers.

Key Improvements:

  • Accessible Tap Targets: Enforces a minimum 44x44px interactive area for all sidebar links, category collapse toggles (.menu__caret), mobile navbar toggles, and drawer close buttons to meet WCAG accessibility guidelines.
  • Smooth Animations: Introduces optimized cubic-bezier transitions and will-change hints for the mobile sidebar drawer, documentation sidebar container, and collapsible menu categories to ensure fluid, high-performance interactions.
  • Content Overlap Prevention: Establishes appropriate z-index hierarchies, subtle box-shadow depth, and tablet-optimized width constraints (320px / 80vw max) to prevent the sidebar drawer from improperly overlapping or obscuring main page content.

Changes

  • src/css/custom.css: Added targeted media queries (max-width: 996px and min-width: 768px and max-width: 996px) to improve tap target dimensions, transition smoothness, and container layout.

Verification & Testing

  • Verified collapsible sidebar functionality and smooth animations across tablet (768px - 996px) and mobile (<768px) viewports.
  • Confirmed all interactive tap targets meet the 44x44px accessibility threshold.
  • Verified clean layout without unintended content overlap.
  • Formatted modified files using Prettier.

Copilot AI review requested due to automatic review settings May 17, 2026 09:54
@netlify
Copy link
Copy Markdown

netlify Bot commented May 17, 2026

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 8c24c8f
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/6a0990a9da00fd00081504a1
😎 Deploy Preview https://deploy-preview-308--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kmesh-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lizhencheng9527 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: vanshika2720 <pahalvanshikaa@gmail.com>
@vanshika2720 vanshika2720 force-pushed the feature/improve-sidebar-navigation branch from 2a7a590 to 8c24c8f Compare May 17, 2026 09:55
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates src/css/custom.css to improve accessibility by increasing tap targets to 44px, adds smooth transitions for sidebar and menu components, and introduces tablet-specific viewport adjustments. Feedback highlights concerns regarding the use of !important on layout properties, the potential performance impact of the will-change property on large containers, and the technical limitations of transitioning the height property for dynamic elements.

Comment thread src/css/custom.css
Comment thread src/css/custom.css
Comment thread src/css/custom.css
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@vanshika2720
Copy link
Copy Markdown
Author

/cc @hzxuzhonghu
/cc @yashisrani
/cc @LiZhenCheng9527

@yashisrani
Copy link
Copy Markdown
Contributor

@vanshika2720 please attach screenshots about this new changes ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants