Skip to content

fix(theme): Link click area should be same#2777

Merged
SoonIter merged 2 commits intomainfrom
syt/hover-link
Nov 18, 2025
Merged

fix(theme): Link click area should be same#2777
SoonIter merged 2 commits intomainfrom
syt/hover-link

Conversation

@SoonIter
Copy link
Member

@SoonIter SoonIter commented Nov 18, 2025

Summary

fix(theme): area should be same

image

The clickable area of the language switch region is too small, for example, when the mouse is placed slightly above "English", there is already a hover effect, but it cannot be clicked.

Related Issue

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 18, 2025 08:23
@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit b92ae31
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/691c2dbdefc9660008ddea73
😎 Deploy Preview https://deploy-preview-2777--rspress-v2.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.

@SoonIter SoonIter changed the title fix(theme): area should be same fix(theme): Link click area should be same Nov 18, 2025
Copy link
Contributor

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.

Pull Request Overview

This PR fixes the clickable area inconsistency in navigation and hover group components by ensuring links fill their parent containers completely. The changes standardize the clickable areas across different UI components.

  • Added height: 100%; to navigation menu items
  • Created a dedicated link wrapper class in HoverGroup with explicit height styling
  • Restructured CSS to move clickable area styling to the link level

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/core/src/theme/components/Nav/NavMenu.scss Added height: 100%; to nav menu items to fill the parent container
packages/core/src/theme/components/HoverGroup/index.tsx Added rp-hover-group__item__link className to Link component for targeted styling
packages/core/src/theme/components/HoverGroup/index.scss Removed item-level cursor styling and added link-specific height styling for consistent clickable area

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

Rsdoctor Bundle Diff Analysis

📁 web

Path: website/doc_build/web/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 14.3 MB - -
📄 JavaScript 13.7 MB - -
🎨 CSS 109.1 KB - -
🌐 HTML 0 B - -
📁 Other Assets 496.7 KB - -

Generated by Rsdoctor GitHub Action

@SoonIter SoonIter merged commit b7dcdd6 into main Nov 18, 2025
9 checks passed
@SoonIter SoonIter deleted the syt/hover-link branch November 18, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants