-
Notifications
You must be signed in to change notification settings - Fork 328
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
WIP: Updating date component to be type text and allow inputmode #1599
WIP: Updating date component to be type text and allow inputmode #1599
Conversation
Heya Colin,
I think unless you have a very clear reason why someone wants to do this, we should not allow them to be overridden for now as it expands the API surface area without a need. If we then get a clear need to override this in the future we can add this functionality without a breaking change.
We should consider this but it would be a breaking change so would need to be against the 4.0.0 milestone, so if we want to do this we should raise a new issue to track removing that.
Sorry if I've missed some important context but we typically avoid using this attribute as it is less usable, copy pasting, typing without looking, autofill etc.
Nice! We're the results positive? |
Thanks for the info, I'll make them changes, and work out what else to raise! In terms of the below, is this documented any where? Be a great thing to point people to if so!
Also yes, which shouldn't be a surprise since it has wide support https://caniuse.com/#search=inputmode |
I was talking about you comment on
I'm not sure what you're referring by this actually, I think I got confused haha. It looks like to ship this we might want to do some work alongside it as noted in the original comment: #1449 (comment) So I've put awaiting triage on this for us to chat as a team about how we go about doing that. |
@htmlandbacon Thanks for your patience. There are some accompanying actions/guidance we want to do alongside this work so we're not able to merge this yet. We're going to look at this in a few weeks' time when we'll be doing accessibility fixes. |
I might be wrong, but I think this is here so iOS displays a numeric keypad. |
Just to clarify, in iOS 12.2 and above IMO we should base our decision on dropping |
Hey Colin, Just an update: we were hoping to push forwards with this soon but have had to re-prioritise some stuff to focus on making our contribution and support more sustainable, so we may not get back to this for a while longer. Thanks for your patience 👍 |
I've been away so no issue. 😂 |
Agreed, can we remove this?
I've raised #1701 to address this. @htmlandbacon we're looking to pick this up this sprint – would you have time to remove the ability to customise the input |
@htmlandbacon thanks very much for your work on this so far – we can pick this up and take it forward. |
No worries, apologies for not replying - I was trying to work out if I could progress it this week! Let me know if there is anything I can support on 🎈 |
Opening for discussion, following on from pull request 1527 - I've applied this to the date component.
Before I go too far I figured there is a couple that probably needs talking through.
I've allowed type and inputmode to be overridden - should this be the case?
Given we recommend not using html5 validation, should we remove the pattern params?
We should update the example with maxlength attribute?
My thoughts where no, yes and yes.
Happy to take onboard any addtional comments 👍
I've done manual testing in on Browserstack and had a Dragon user test it.
Following on from #1449 (comment)