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

Increase search button height on small screens #3482

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rmccar
Copy link
Contributor

@rmccar rmccar commented Jan 24, 2025

What is the context of this PR?

Fixes: #3457 ONSDESYS-233

The button height is set by the height of the text in the button so when the button has only an icon the button is smaller. I have added a margin top and bottom to the icon to stop the shrinking of the button. To do this I have flipped the logic for the margin right so that the margin right is always set and then is overridden and set to 0 on smaller screens.

How to review this PR

Use the example-header-external-with-navigation-and-search example and see that on main the search button is smaller than the menu button when you reduce the window width to > 500px. See that on this branch that in the same situation the button is now the same height.

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@rmccar rmccar requested a review from a team as a code owner January 24, 2025 15:14
@rmccar rmccar self-assigned this Jan 24, 2025
Copy link

netlify bot commented Jan 24, 2025

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit c8cb75c
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/6793ae664e57920008e8462a
😎 Deploy Preview https://deploy-preview-3482--ons-design-system-preview.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 site configuration.

@rmccar rmccar added the Bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Header buttons different heights on small screens
1 participant