-
Notifications
You must be signed in to change notification settings - Fork 85
(regression) text inputs are no longer aligned correctly with icon-buttons #180
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
Comments
Screenshot ? |
There's also another regression where adding margins >0.5em to text inputs makes letters with descenders (like g) get cut off. (you can see this in scratchpad's map input dialog). |
I can't reproduce the second issue, the letter g seems to render fine to me. |
So the fix here is to remove the bottom margin, and use padding: 0.75em 0; |
I won't have time for this for another week or two, but I should be able to get it by the 15th. |
I'm not sure this is actually fixable. The issue is that the spec says that text-inputs should be 3em tall, while toolbar buttons are 2em tall. There's not a good way to fix this that doesn't break other things. For scratchpad, I'll probably use custom css to fix this. (Also, the text-inputs were missing the margin-bottom, filed #183 about this). |
(#183 wasn't related to this - actually, it makes this specific problem worse. However, it improves compliance with the spec.) Changing the padding and removing the margin works for scratchpad, but it also changes the way the text in the input is positioned: This doesn't match the spec, and also doesn't look as good. |
Appears to be caused by 7944359, specifically the change in padding for text inputs at 7944359#diff-af68e2ad3fd9d7a16efecb33a3a11b96L481. Probably, this change should apply to dropdowns only, and not text inputs.
The text was updated successfully, but these errors were encountered: