Skip to content

DatePicker v12 📅 #11967

@dakahn

Description

@dakahn

Carbon v12 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):

Design

  • the previous DatePicker design/UX was limited by the aforementioned Flatpickr dependency. With that dependency gone, we can evaluate if we want to revisit those designs or improve the existing UX
  • product teams that are extending functionality can potentially have that functionality included out of the box with v12 DatePicker lifting up maintenance/support cost to the Carbon team
  • ???

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:

Migration

A migration path from v11 to v12 should be considered which has the potential to include:

  • an EXPERIMENTAL__DatePicker version we can test with Carbon users
  • API mappings for previous props
  • codemods for projects looking to update
  • outreach to teams using and extending v11 DatePicker
  • ???

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Completed 🚢

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions