Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker v12 馃搮 #11967

Closed
dakahn opened this issue Aug 16, 2022 · 1 comment
Closed

DatePicker v12 馃搮 #11967

dakahn opened this issue Aug 16, 2022 · 1 comment
Labels
component: date-picker epic Special label used by ZenHub for epic functionality planning: umbrella Umbrella issues, surfaced in Projects views proposal: accepted This request has gone through triaging and we are accepting PR's against it. role: design 鉁忥笍 role: dev 馃 type: enhancement 馃挕 version: 12 Issues pertaining to a future major release of Carbon

Comments

@dakahn
Copy link
Contributor

dakahn commented Aug 16, 2022

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
  • ???
@stuckless
Copy link

To minimize the case for needing to extend or create our own, please consider the following

  1. if the component is going to display a date or allow the date to be entered from a keyboard it should expose parse/format function properties to allow teams to provide their own parsing/formatting of the date.
  2. if the component is going to validate a date it would provide the ability to provide a custom validation function
  3. Allow for custom placeholder text

@sstrubberg sstrubberg added the proposal: accepted This request has gone through triaging and we are accepting PR's against it. label Dec 12, 2022
@tay1orjones tay1orjones added the version: 12 Issues pertaining to a future major release of Carbon label Feb 28, 2023
@carbon-design-system carbon-design-system locked and limited conversation to collaborators Mar 15, 2023
@sstrubberg sstrubberg converted this issue into discussion #13355 Mar 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
component: date-picker epic Special label used by ZenHub for epic functionality planning: umbrella Umbrella issues, surfaced in Projects views proposal: accepted This request has gone through triaging and we are accepting PR's against it. role: design 鉁忥笍 role: dev 馃 type: enhancement 馃挕 version: 12 Issues pertaining to a future major release of Carbon
Projects
Archived in project
Development

No branches or pull requests

5 participants