June 7, 201610 yr I'm not 100% sure where to post this. I'm not talking about a ul dropdown, but <select>: I have a dropdown for a selection of dates on an ecommerce website, the dates are written long hand, i.e. Monday 1st March 2016 - Friday 5th March 2016 Which is one <option>. As the options are long, they run off the edge of the screen when viewing on your phone, so you can't see the full date... Has anyone had this issue before or has a solution? You would assume the text would wordwrap... but isn't this part of the UI design for Android / iOS etc ???
June 7, 201610 yr I'd guess it's part of the UI which expects "shorter" naming. One option would be to switch to radio inputs?
June 7, 201610 yr Shortening the dates is one method that will work. Alternatively, you could look at a date picker. Make sure it's mobile friendly if you go down this route, many of them are not. http://curioussolutions.github.io/DateTimePicker/ http://amsul.ca/pickadate.js/
June 7, 201610 yr You could swap the select to an input type="date" for compatible browsers on smaller devices. It's not perfect, but it works... https://jsfiddle.net/andy9l/p9kmdoLp/ Unless you're talking about date ranges... Edited June 7, 201610 yr by andy9l
June 7, 201610 yr Author You could swap the select to an input type="date" for compatible browsers on smaller devices. It's not perfect, but it works... https://jsfiddle.net/andy9l/p9kmdoLp/ Unless you're talking about date ranges... Not date ranges, literally just a couple of options as available dates. I will try this method and let you know how I get on! Thanks for all the ideas guys!
Create an account or sign in to comment