vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 763 forks source link

Date Picker with calendar weeks (optionally shown in first column) #5273

Closed d-m-s closed 3 years ago

d-m-s commented 3 years ago

Summary

Enhance the current date picker to optionally (via parameter) show the calendar weeks in the first column.

Use case

The user knowns that a delivery is expected in calendar week 46 (CW46), eg. from some phone call or paper delivery bill, and wants to set eg. monday of this week into the date field.

Examples

Clarity example, currently without calendar week

2020-11-06_11h52_00-Clarity currently without CW

Microsoft Fluent Design https://developer.microsoft.com/en-us/fluentui#/controls/web/datepicker

2020-11-06_12h28_13-KW-FluentDesign

Outlook

2020-11-06_12h40_17-KW-Outlook

Bootstrap

2020-11-06_11h56_27-KW-Bootstrap

Workarounds

Cumbersome, looking into physical calender's or other software products (Outlook) switching back to application and entering the date.

bdryanovski commented 3 years ago

@d-m-s this is something that we could consider adding but probably as part of the new Core component as part of the DatePicker and TimePicker component that we plan to replace the current one. This is something that we have on our roadmap for the next year.

d-m-s commented 3 years ago

Hi @bdryanovski, do you refer to the mentioned #474, or is there another existing?

bdryanovski commented 3 years ago

It's one of them. We are planning to redesign and rework the component, and want to do it right so that's why we are taking more time to plan what we want to include and how to make it accessible for everyone. We have some plan on how to do it, not everything is public, it's just not in the roadmap until the end of the year (for now).

d-m-s commented 3 years ago

can you give us a little more info about when this will start to be implemented? or if some form of contribution could speed up the process?

gnomeontherun commented 3 years ago

Hey @d-m-s, we're starting to consider enhancements only for Clarity Core implementations of components, as we wish to stabilize Clarity Angular for long term support. We've had internal discussions about how and when to build the Clarity Core versions of Date Picker, but have currently settled for the default browser date picker as we have a few dependencies to build first (we need to finish working on popovers in Core for example). We haven't done any design work on this yet, and I don't have any timeline as its not a current top priority until we finish the necessary dependencies. I also don't know what the accessibility requirements might be to add this additional column, so there are a few fundamental things to understand before we could tackle it so we aren't ready to encourage a contribution at this stage.

Jinnie commented 3 years ago

Transferring my last comment form #5351

This should definitely go through Accessibility team first, as I don't see this feature in the W3C examples: https://www.w3.org/TR/wai-aria-practices-1.1/examples/dialog-modal/datepicker-dialog.html @chlane

gnomeontherun commented 3 years ago

The feature request here has been captured into our list and we’re going to take it into consideration as we develop Clarity Core capabilities. In an effort to clean up our backlog and focus our attention, I’m going to close this as captured in our feature requests. Please follow our development and releases to see when we release relevant components to make this possible. Future feature requests can be made in our GitHub Discussions.

github-actions[bot] commented 3 years ago

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.