-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
feat(datetime): add animation to adjacent days selection #30298
Conversation
- scroll animation when adjacentDay is selected;
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -251,7 +251,8 @@ | |||
* is selected should have ion-color for | |||
* text color and be bolder. | |||
*/ | |||
:host .calendar-day.calendar-day-active { | |||
:host .calendar-day.calendar-day-active, | |||
:host .calendar-day.calendar-day-adjacent-day.calendar-day-active { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:host .calendar-day.calendar-day-adjacent-day.calendar-day-active { | |
:host .calendar-day.calendar-day-adjacent-day.calendar-day-active { |
@@ -117,7 +117,8 @@ | |||
* is selected should have ion-color for | |||
* text color and be bolder. | |||
*/ | |||
:host .calendar-day.calendar-day-active { | |||
:host .calendar-day.calendar-day-active, | |||
:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{ | |
:host .calendar-day.calendar-day-adjacent-day.calendar-day-active { |
- simplify logic to use a targetValue const;
- call confirm after adjacentDay is clicked;
- add test to check ionChange value and component value returned from normal day and adjacent day;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes.
core/src/components/datetime/test/show-adjacent-days/index.html
Outdated
Show resolved
Hide resolved
- fix comment;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue number: internal
What is the new behavior?
Now when an adjacent day is selected the component will scroll to the pretended month, as it does when a month change via arrow buttons.
Changes:
Does this introduce a breaking change?
Other information