Textinput: Clear button padding is incorrect in "mini" mode #7011
Description
When you have an <input type="search">
with an added clear button, the right padding is not quite correct when ui-mini
is also applied to the input, and the right edge of the input box slightly overlaps the clear button. Minor visual bug that's not normally detectable unless one tries to right align other elements inside the input, such as a spinning loading indicator for jQuery UI autocomplete.
This appears to be due to the .ui-mini
style font-size: 12.5px
. As the padding for the clear button is measured in em
, and the size of the clear button is the same regardless of whether the parent input is normal or mini sized, the 2.25em padding is no longer sufficient when the font size is smaller. If the icon itself is fixed size, then it seems like the padding around it should also always be fixed size too?
This is easy repro-able and demo-able on the jQM textinput demo page, but I'm happy to port it over to jsbin if that's easier for you to debug.
http://demos.jquerymobile.com/1.4.0/textinput/
Simply scroll down to the "Mini" section on the demo page, type a couple of characters into the text input and use your favorite web debugger to inspect the input
and parent div.ui-input-search
layouts. You'll see the right edge of the input is overlapping the clear button.