You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, number fields in FreeSewing use <input type="number">. This provides the advantage of a number keyboard when using a software keyboard and (mostly) limiting keys entered to numerical values. However, it has a number of disadvantages, most noticeably, when the user scrolls while the field is in focus, the number value changes in addition to the page scrolling. This can result in unintended changes to the number fields. I've noticed this most on the measurements entry page, but it may be elsewhere as well. There are accessibility issues with this field type as well. Changing these fields to <input type="text" inputmode="numeric" pattern="[0-9]*"> will address these issues, among others.
What is it that you would like to see happen? 🤔
Right now, number fields in FreeSewing use
<input type="number">
. This provides the advantage of a number keyboard when using a software keyboard and (mostly) limiting keys entered to numerical values. However, it has a number of disadvantages, most noticeably, when the user scrolls while the field is in focus, the number value changes in addition to the page scrolling. This can result in unintended changes to the number fields. I've noticed this most on the measurements entry page, but it may be elsewhere as well. There are accessibility issues with this field type as well. Changing these fields to<input type="text" inputmode="numeric" pattern="[0-9]*">
will address these issues, among others.See more info on the issue and how the fix was implemented on gov.uk Why the GOV.UK Design System team changed the input type for numbers.
Additional context
No response
The text was updated successfully, but these errors were encountered: