-
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 showAdjacentDays to display days from the previous and next months #30209
base: feature-8.5
Are you sure you want to change the base?
Conversation
- add showDaysOutsideCurrentMonth property to datetime component; - change month generation to respect new property;
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- create specific test page for showDaysOutsideCurrentMonth;
...onth/datetime.e2e.ts-snapshots/custom-wheel-with-hidden-days-ios-ltr-Mobile-Chrome-linux.png
Outdated
Show resolved
Hide resolved
@JoaoFerreira-FrontEnd some screenshots are failing, please review this before requesting review 👍 Apart from the comments I already left, I didn't find anything more to comment on! It seems to be working as expected in runtime 💪 |
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
…datetime.e2e.ts Co-authored-by: Brandy Smith <[email protected]>
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.
Please see my comment on JIRA for further feedback. 🙂
:host .calendar-day.calendar-day-adjacent-day { | ||
opacity: 0.4; | ||
} |
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 { | |
opacity: 0.4; | |
} |
This is not necessary because the disabled opacity will be applied by the above rule after removing the opacity checks from ios
and md
.
|
||
opacity: 1; |
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.
opacity: 1; |
|
||
opacity: 1; |
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.
opacity: 1; |
@@ -267,6 +267,12 @@ | |||
color: current-color(contrast); | |||
} | |||
|
|||
:host .calendar-day.calendar-day-adjacent-day:not([disabled]) { |
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:not([disabled]) { | |
:host .calendar-day.calendar-day-adjacent-day { |
border: 1px solid current-color(base); | ||
|
||
background: current-color(base); | ||
} | ||
|
||
:host .calendar-day.calendar-day-adjacent-day:not([disabled]) { |
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:not([disabled]) { | |
:host .calendar-day.calendar-day-adjacent-day { |
Issue number: Internal
What is the new behavior?
Adds a new property to datetime,
showAdjacentDays
, that when true will show the last days of the previous month and the first days of the next month. This will just occupy empty "cells" at the beginning of the month "table" and add rows to the table until a maximum of 6 rows are displayed.Changes
showAdjacentDays
property to datetime componentDoes this introduce a breaking change?
Other information
Preview