-
Notifications
You must be signed in to change notification settings - Fork 69
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
Expand hover styles on buttons to fill mobile menu #1076
Conversation
Deploy Staging to Main branch
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@millmason thank you for the detailed testing instructions. I just tested your PR. Gray hover styling now spans the mobile nav menu's entire width. Thanks! |
By the way, I've changed this PR's base branch from main to staging. I'll update this repo's contributors guide to let folks know that generally they should submit PRs against staging branch. |
@bacitracin I noticed that on our live website, the mobile nav menu has no hover styling on screens smaller than 640px. That behavior is unrelated to this PR. Do you know whether that's a bug, or if the menu is working as intended? |
@CodeWritingCow Hmm at < 640px the mobile menu background color still changes on hover, from the page color to a brighter white. This is the same as at higher widths. So I'd say it's a bug, and the dark grey hover over each option is missing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for fixing!
@bacitracin @CodeWritingCow I don't have write-access to the repo so I can't merge the branch -- should I ping someone to do so? (Not to rush, just making sure I'm not omitting a step!) |
@millmason Nope, no need unless we're being super slow about it. Just merged 👍 |
Just created bug ticket #1079 to track this issue! |
What
Addresses (issue 977: Hover styling does not span the entire width of menu)[#977].
How
We add the tailwind classes
w-full
andjustify-start
(which translate to:width: 100%;
andjustify-content: start
) to all links in the mobile menu. This expands the element to the full width of the mobile menu while keeping the text aligned correctly.Screenshots
Before:
After:
Testing instructions:
View current state
View proposed changes