-
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 parts for calendar day, active, and today #27641
Conversation
Run & review this pull request in StackBlitz Codeflow. |
Going to remove myself from review while this is in draft. Feel free to re-add once it's ready for review! |
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.
The difference between these two screenshots is a shift horizontally of the 12
and the 26
.
datetime-diff-one.mov
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.
The difference between these two screenshots is a shift horizontally of the 12
and the 26
.
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.
The difference between these two screenshots is a shift horizontally of the 12
and the 26
.
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.
The difference between these two screenshots is a shift horizontally of the 12
and the 26
.
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.
The difference between these two screenshots is a shift horizontally of the 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.
The difference between these two screenshots is a shift horizontally of the 1
in 14
and 0
in 30
.
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.
The difference between these two screenshots is a shift horizontally of the 1
and 8
.
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.
The difference between these two screenshots is a shift horizontally of the 1
and 8
.
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.
The difference between these two screenshots is a shift horizontally of the 1
and 8
.
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.
The difference between these two screenshots is a shift horizontally of the 1
in 14
.
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.
I agree with making them all the same size; not sure why that border would have been there in the first place 🤔
This should be good for review now! All feedback has been addressed & screenshots are up to date. |
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.
My comments are non-blocking. Fantastic work on this ✨
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.
Good to go once below feedback is addressed. Great work!
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.
🎉 🎉 🎉
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.
Great work!
Issue number: resolves #25340
What is the current behavior?
It is not possible to style the calendar days in a datetime since it uses shadow DOM and there are not exposed parts or CSS variables for the calendar days.
What is the new behavior?
calendar-day
,today
, andactive
calendar-day-highlight
element with thecalendar-day
element so developers don't have to know to style two different elements & we don't have to expose them as separate partscustom
e2e test to include an example of styling days using the newly exposed CSS partsDoes this introduce a breaking change?
Other information
This PR has a number of screenshot diffs. I have gone through all of them and believe they are either improvements to datetime or inconsequential changes.
md
increasing, this comment explains why this is a good change. (I did not comment on every screenshot with a height increase, but you can see the pixel change at the bottom to verify it was caused by this).ios
. This is caused by the browsers rendering fractional pixels differently. This comment explains why this is a desired change. (I did not comment on every screenshot with a height increase, but you can see the pixel change at the bottom to verify it was caused by this).