ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Range broken on Android < 4.4

Open tlancina opened this issue 12 years ago • 5 comments

input[type='range']::-webkit-slider-thumb::before and input[type='range']::-webkit-slider-thumb::after aren't supported on android < 4.4.

Here's a demo, try loading in stock browser on 4.0-4.3 http://jsfiddle.net/sidonaldson/dCKd3/9/.

tlancina avatar Feb 04 '14 23:02 tlancina

It seems that using the following fixes the issue (ionic.css):

input[type="range"] { display: inline-block; overflow: hidden; margin-top: 5px; margin-bottom: 5px; padding-right: 2px; padding-left: 1px; width: auto; /height: 35px;/ min-height: 35px; outline: none; /background: linear-gradient(to right, #cccccc 0%, #cccccc 100%);/ background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #cccccc), color-stop(100%, #cccccc)); background-position: center; background-size: 99% 4px; background-repeat: no-repeat; -webkit-appearance: none; }

starmate avatar Feb 05 '14 15:02 starmate

Thanks @starmate, fixed in https://github.com/driftyco/ionic/commit/e7eefeef91d1f1ac2e9f78bb7dde22058e51ff31.

tlancina avatar Feb 05 '14 17:02 tlancina

Great!! Thanks! ;)

starmate avatar Feb 05 '14 18:02 starmate

Thanks for this solution, it was much required to boost my confidence in Ionic as framework. With above suggested CSS my slider was of half the width of mobile view. below changes in above CSS worked for me.

I changed display:inline-block to display:flex

gauravdhiman avatar Feb 14 '14 11:02 gauravdhiman

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 04:09 ionitron-bot[bot]