Skip to content

Fix Back to Editor hover state gap and icon visibility #3733#4116

Open
SatyamKumarCS wants to merge 1 commit into
processing:developfrom
SatyamKumarCS:fix-back-to-editor-hover
Open

Fix Back to Editor hover state gap and icon visibility #3733#4116
SatyamKumarCS wants to merge 1 commit into
processing:developfrom
SatyamKumarCS:fix-back-to-editor-hover

Conversation

@SatyamKumarCS
Copy link
Copy Markdown

Issue:

Fixes #3733

The navigation header had a visual bug where the hover state of the “Back to Editor” button would expand into the gap between it and the p5* logo, making the two elements appear merged. Additionally, the left-arrow icon lacked proper contrast on hover, making it difficult to see against the hover background. This PR corrects the hover bounding box and ensures icon visibility.

Demo:

Screenshot 2026-05-14 at 7 08 09 PM

Changes:

  • Refined Hover Boundary: Removed the padding-left from the list item container (.nav__item--no-icon) and moved it inside the link element (.nav__back-link). This ensures the hover background highlight is scoped strictly to the button area.
  • Fixed Icon Visibility: Added a specific hover rule for the back-arrow icon to use button-hover-color, preventing it from "disappearing" against the hover background.
  • Layout Consistency: Set the link element to fill the container height (height: 100%) and used flex centering to ensure the clickable area is vertically consistent with other nav items.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch (fix-back-to-editor-hover) and is up to date with the develop branch.
  • is descriptively named and links to an issue number.
  • meets the standards outlined in the accessibility guidelines

Copilot AI review requested due to automatic review settings May 14, 2026 13:40
@welcome
Copy link
Copy Markdown

welcome Bot commented May 14, 2026

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

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.

Pull request overview

This PR updates the desktop navigation header styling to address the “Back to Editor” hover treatment and back-arrow icon contrast.

Changes:

  • Moves spacing from the no-icon nav item to the back link.
  • Adds a targeted hover background for the back link.
  • Updates the back icon fill color on hover.


align-items: center;
height: 100%;
padding: 0 #{math.div(10, $base-font-size)}rem;


.nav__item.nav__item--no-icon:hover {
background-color: transparent !important;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hover state removes the gap between logo block and “Back to Editor” button

2 participants