-
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
DateFormatPicker: use CustomSelectControl V2 legacy adapter #63171
DateFormatPicker: use CustomSelectControl V2 legacy adapter #63171
Conversation
Size Change: -52 B (0%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
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.
LGTM 👍
FWIW the v2 legacy version without the extra item bottom margin looks better than the v1, which was a bit too spread out.
The v1 also keeps closing after a couple of tab changes while comparing to the v2 in a neighbor browser tab. The v2 does not do it, which I find convenient.
🚀
…s#63171) * DateFormatPicker: use CustomSelectControl V2 legacy adapter * Remove unnecessary styles
What?
Part of #55023
Replace the V1
CustomSelectControl
with the V2 legacy adapter in the date format picker controlWhy?
The goal is to ultimately replace the legacy V1 implementation entirely with the V2 legacy adapter. We're performing the migration gradually, and fixing any bugs / gaps as we go.
How?
Testing Instructions
trunk
Note: on trunk, each option item in the dropdown has a an extra
6px
bottom margin that is the result of a style leak (see the second set of screenshots below). I assume that's not intended. The leak does not apply when using the new version of the component since its option items are not rendered using theli
HTML element.Screenshots or screencast
cscv2.date.format.picker.v1.mp4
cscv2.date.format.picker.v2.mp4