-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add ability to hide the IcDateInput control in the IcDatePicker #3333
base: develop
Are you sure you want to change the base?
Add ability to hide the IcDateInput control in the IcDatePicker #3333
Conversation
…atepicker add a new showDateInput prop allowing the date input to be hidden and the calendar to always be open
…in the icdatepicker add a new showDateInput prop allowing the date input to be hidden and the calendar to always be open
Hi @dn55533, thanks for the contribution. we will run it past the design team as the figma library may also require an update to match the behaviour. Also would with the release of v3, would you mind carrying out this work in the v3.0.0/develop code base, as v2 will only be for major bug fixes soon. You are welcome to contribute it to v2 too, but just a heads up that the code bases are already slightly different, so may require some duplication of effort |
c72d898
to
53c82c0
Compare
…datepicker add a new showDateInput prop allowing the date input to be hidden and the calendar to always be open
53c82c0
to
d5c57d9
Compare
Sure, happy to make the change in V3 as well. If you could review this V2 version, once you're happy with it I'll port it to V3. |
We're still wanting to run this past the design team, and it may take some time to get eyes on it, but we do have a few initial concerns. The date picker isn't currently intended to be used without the input field. The definition of it is: "A date picker is a type of drop-down control that allows people to easily view and select dates." Our initial thoughts are that trying to just use the calendar view part might be better suited as a new component (which the date-picker could then potentially be refactored to use). There are a few reasons for this:
|
Converted PR to draft to carry out the refactoring of the calendar into a separate component and refactoring of the date picker to use it. |
Summary of the changes
Add ability to hide the IcDateInput control in the IcDatePicker
This allows the IcDatePicker component to be used as a more generic date picking calendar, without the added complexity of entering dates in the IcDateInput.
This makes the component more generic and allows the calendar and date picking part of the component to be used as a building block in other date-related components.
Related issue
N/A
Checklist
General
Testing
Accessibility
Resize/zoom behaviour
System modes
Testing content extremes