Git Product home page Git Product logo

Comments (7)

rvantonisse avatar rvantonisse commented on June 12, 2024 1

(Option 3) Changing date input into text is most easy option to apply and gives full control on in and output to the user. Only (minor) disadvantage is losing date picking functionality for supporting browsers.

I prefer this for reasons that the user will have full control over input and output.

Option 2 is still forcing a user into a date format and requires me to add some code.

I will implement option 3

from wai-statements.

shawna-slh avatar shawna-slh commented on June 12, 2024

/me was surprised to find when she cleared the date that it says mm/dd/yyyy instead of dd/mm/yyyy

from wai-statements.

rvantonisse avatar rvantonisse commented on June 12, 2024

Solution options:

  • leave as is
  • Apply a format on the date output in the generated statement
  • change date input to text input so a user can decide what the date output will be

Explanation
Date input type is a bit of a pain to get a behaviour that is the same in every browser. Currently if a browser does support the date typed input, the browser implements its own kind of date picker which provides a nice user interface to pick a date. If not it defaults to a text input without this nice user interface.

e.g. 01/02/2018 -> 1 February 2018

What the format is for a date input is system / browser specific. Enabling a different date input format is possible, but would require a lot of code effort. Instead it is easier to apply this readable date format as output in the generated statement by either change the input type to text or apply a pretty format on the date output.

/me was surprised to find when she cleared the date that it says mm/dd/yyyy instead of dd/mm/yyyy

I think this is because of local / date settings on your system / browser used.

from wai-statements.

shawna-slh avatar shawna-slh commented on June 12, 2024

Rationale: A lot of people don't even realize that 01/02/yyyy is different dates in different parts of the world.

If the date was very important, then I would strongly support doing more to make the outputted date clear -- that is, write out the month.

However, I think the date is not super important for most accessibility statements. Therefore, I'd be OK leaving it if others thinks that is best.

Apply a format on the date output in the generated statement

I mildly prefer this option. (Users can still change it if they want.)

change date input to text input so a user can decide what the date output will be

I think this would take away the advantages of having a date-picker, and still many people filling it in wouldn't know to write out the month... unless we added explanation of why to do it - which seems a bit much.

from wai-statements.

nitedog avatar nitedog commented on June 12, 2024

@rvantonisse agree that changing the date input would be too difficult (would need to create our own date picker, which is maybe not what we want to do in this version). But how about changing the format of the generated date? I think this should be fairly easy, no? (Option 2)

from wai-statements.

yatil avatar yatil commented on June 12, 2024

[My comment is not blocking publication.]

I wonder if we should not just have a text field and output it as verbatim. That way, people can also write December 2018 if they want without a day date.

from wai-statements.

nitedog avatar nitedog commented on June 12, 2024

Change made as described above.

from wai-statements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.