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

Search box icon border not aligned #132

Open
gabbsmo opened this issue Apr 25, 2024 · 0 comments
Open

Search box icon border not aligned #132

gabbsmo opened this issue Apr 25, 2024 · 0 comments

Comments

@gabbsmo
Copy link

gabbsmo commented Apr 25, 2024

Describe the bug
Depending on DPI, zoom etc. the borders of the search box's icon and input are not always aligned

To Reproduce
Steps to reproduce the behavior:

  1. Go to Pattern Lab
  2. Zoom using the browser

Expected behavior
The borders should always be aligned.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Edge
  • Version: 124

Additional context
This seem to be a rounding error. The icon is always 32px in height, while the input is 31.44 in my case. A workaround is to use height: 2rem for the input, rather than height: fit-content.

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

No branches or pull requests

1 participant