DataForm: support a compact version for the datetime control#76905
DataForm: support a compact version for the datetime control#76905ntsekouras merged 2 commits intotrunkfrom
datetime control#76905Conversation
|
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. |
| } | ||
| } | ||
|
|
||
| .fields-controls__password { |
There was a problem hiding this comment.
These are the same styles we have for site editor.
There was a problem hiding this comment.
shouldn't these be part of the password field?
There was a problem hiding this comment.
I'm not sure because even if the password field right now is rendered as a child field of status, are we committing to the concept of this field always being a part of status. If yes, we can move them there.
If not, the field shouldn't have such specific styles.
Is this something though that highlights the need for nested fields to support some different styles (like borders)? Same case applies to the scheduled date, which is also part of status, but right now has no border separator.
There was a problem hiding this comment.
I see. So these styles are unrelated to the scheduled datetime control, but rather to replicate this:
Separators between fields should be absorbed by the layout config, and there's some conversation about that at #75916.
In the meantime, it's not clear how to deal with this but they are more "form styles" than they are "field styles". Can we scope them to the sidebar experiment and link to this conversation/the field groups issue as a TODO stating it should be replaced with form config?
|
Size Change: +280 B (0%) Total Size: 7.73 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 8770db6. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23785977030
|
fdc00d8 to
8770db6
Compare
#76905) Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
#76905) Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
compact configuration option to the datetime controldatetime control
What?
Resolves: #76234
This PR adds
compactconfig to DataForms datetime control. This is used inscheduled_datefield for now which is conditionally rendered as a child of the post status field.Testing Instructions
quick editof a page, edit thestatusand selectscheduled. The rendered control should display only theinputEditor Inspector: Use DataFormexperiment enabled.?path=/story/dataviews-fieldtypes--date-time-componentTesting Instructions for Keyboard
Screenshots or screencast