Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve visual styling of mobile menu toggle when menu is open #2727

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

techfg
Copy link
Contributor

@techfg techfg commented Dec 18, 2024

Description

  • Closes Improve visual indication of difference between open and close menu #2699
  • What does this PR change? Changes the icon used when the menu is open to close ("X") to improve the visual indication that the behavior of clicking the button is different. The current approach is to change the background color and drop the box shadow, however darkening the button gives the appearance that the button is disabled and dropping the box shadow is difficult to discern in dark theme. The state of the button is not changing when the menu opens/closes, only its behavior is which is more commonly represented with a change in icon vs. a change in style.
  • Did you change something visual? A before/after screenshot can be helpful.

Dark Theme

Open Closed
Current image image
Proposed image image

Light Theme

Open Closed
Current image image
Proposed image image

Copy link

changeset-bot bot commented Dec 18, 2024

🦋 Changeset detected

Latest commit: 2d69f6f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/starlight Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the 🌟 core Changes to Starlight’s main package label Dec 18, 2024
Copy link

netlify bot commented Dec 18, 2024

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit 2d69f6f
🔍 Latest deploy log https://app.netlify.com/sites/astro-starlight/deploys/676269628144a900084eeb72
😎 Deploy Preview https://deploy-preview-2727--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🔴 down 5 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌟 core Changes to Starlight’s main package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant