Replies: 6 comments 2 replies
-
To minimize the case for needing to extend or create our own, please consider the following
|
Beta Was this translation helpful? Give feedback.
-
Are there any more updates regarding plans for a new date picker? The current one has so many issues, particularly accessibility issues. My team has applied a lot of customisations in a wrapper component to plug the holes but it's increasingly difficult and maintenance is very hard. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What is about the carbon web-components, are there also plans to update? |
Beta Was this translation helpful? Give feedback.
-
One additional requirement that would be nice to have as part of this is multiple calendar support, #7265. This was recently brought up again internally. |
Beta Was this translation helpful? Give feedback.
-
Another nice to have would be combining datepicker and timepicker, #10186. Probably not to actually merge the components (we could, I just don't think it's necessary?), but we could integrate them together more intentionally through composability. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The NEXT Carbon DatePicker will be a from-the-ground-up refactor of the existing component that should take into account the following:
Dev
The primary motivation for the refactor is dropping the Flatpickr dependency improving DX, extensibility, and lowering maintenance cost for the component. Which leaves us with a few options in how to move forward (ordered naively in terms of difficulty):
utilize a modern React date picker with relatively analogous APIs and functionality:
utilize a DatePicker primitive as a base to build on top of:
This is arguably simpler than the previous option because there's less potential for conflict with existing CSS class names/styling
Use browser native
<input type="date">
All modern browsers have a built in implementation of a table calendar the user can select dates from. How different/alike they are in functionality and build is an unknown
Build a wholly bespoke custom implementation
???
Design
Acessibility
It goes without saying that the v12 Carbon DatePicker should be designed/built with 100% WCAG AA level accessibility out of the box. We should lean on industry leaders in the accessibility space internal and external in that regard. Here are some relevant links:
Compatibility
@carbon/react
and@carbon/web-components
Migration
A migration path from v11 to v12 should be considered which has the potential to include:
Beta Was this translation helpful? Give feedback.
All reactions