Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: Date picker (getting rid of material-ui) #210

Open
bjosttveit opened this issue Nov 25, 2022 · 1 comment
Open

Component: Date picker (getting rid of material-ui) #210

bjosttveit opened this issue Nov 25, 2022 · 1 comment
Labels
kind/feature-request New feature or request team/apps Issue affecting the apps team

Comments

@bjosttveit
Copy link
Member

Description

App-frontend-react currently uses the DatePicker from material-ui/pickers, this package is no longer maintained and should be replaced. The best option in my opinion is not upgrading to a newer version of material-ui, but rather getting rid of material-ui entirely and having all such components in the design system.

Additional Information

NAV has started building their own Datepicker in their design system, this could be a source of inspiration:

Having the ability to select time is also an interesting concept, as it is likely a fairly common need. This could either be a part of the same component or a separate component.

@bjosttveit bjosttveit added kind/feature-request New feature or request team/apps Issue affecting the apps team labels Nov 25, 2022
@mrosvik mrosvik moved this to 📋 Backlog in Team Designsystemet Jan 4, 2023
@mrosvik mrosvik changed the title Date Picker component Component: Date picker Jan 4, 2023
@mrosvik mrosvik changed the title Component: Date picker Component: Date picker (getting rid of material-ui) Jan 5, 2023
@mrosvik mrosvik moved this from 📋 Backlog (Design) to 📋 Backlog (Development) in Team Designsystemet Jun 8, 2023
@TomasEng
Copy link
Contributor

Modern browsers have built-in date/time pickers that can be accessed by <input type="date"/> or <input type="time"/>. We will probably use that when implementing a date picker in our design system. Meanwhile, you can apply the type attribute to TextField.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request team/apps Issue affecting the apps team
Projects
None yet
Development

No branches or pull requests

2 participants