-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
DatePicker: better hover/focus styles #65117
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Well spotted, @tyxla — the bug that you highlighted was caused by my code. I had initially used the I also took the opportunity to make the "event dot" work in high contrast mode, too. |
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 catch, thanks 👍
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 works as expected in Windows high contrast mode.
This may be a minor thing, but is it possible to fix the misaligned event dots when a button gets focus? This issue doesn't seem to occur on trunk:
c103c38d06110ee9214f9695eebac5d2.mp4
I'm aware of that little jump — it's a consequence of showing an extra "white" focus ring to better indicate when a selected day is focused. I'll try to apply Lena's suggestion and see how that goes |
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 👍 The bug has been addressed.
Should be good to go once prior feedback is addressed.
ec7cff0
to
db54470
Compare
I addressed all pending feedback — the component is testing well for me Kapture.2024-09-11.at.09.52.05.mp4Thank you all for the review, I'll merge once CI checks are 🟢 |
What?
DatePicker: fix buggy hover styles and improve focus styles for selected day, add high-contrast mode styles.
Why?
Fix bugs, improve accessibility and UI polish
How?
Tweaking the day button styles.
Testing Instructions
DatePicker
in storybookforced-colors: active
media featureScreenshots or screencast
Kapture.2024-09-06.at.12.07.46.mp4
date-picker-after.mp4