-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Highlight today's date in DatePicker #41647
Conversation
14f6149
to
1b67157
Compare
Size Change: +55 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
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.
Worked as advertised for me - and who doesn't want to know what today is 🎉
|
||
&:focus { | ||
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 #{ $border-width-focus + $border-width } $white; | ||
outline: 2px solid transparent; // Shown in Windows 10 high contrast mode. | ||
} | ||
} | ||
|
||
.CalendarDay__today { |
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.
that is a strange naming convention compared to other components, but I see it matches rest of this scss file - I guess it will get tidied up when it all moves to emotion :-)
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.
It's because these classes come from a third party library (react-dates
).
Would love some quick @WordPress/gutenberg-design feedback on this since I pulled the colour choices out of thin air! |
Both the default and the hover states look good to me ✨ |
Thanks! |
What?
Highlights which day is today in the date picker.
Why?
I think this makes it easier to schedule posts. For example, it's difficult to schedule a post for "this Saturday" if you don't know what today is.
How?
I made it so a light grey background appears on today's date.
I also made it so that, on hover, we alter the text colour instead of the background. I think this is consistent with other buttons that we have, but happy to do whatever here.
Testing Instructions
Screenshots or screencast