-
Notifications
You must be signed in to change notification settings - Fork 16
box dox #502
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
base: main
Are you sure you want to change the base?
box dox #502
Conversation
BoDonkey
left a comment
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.
So I know this is a field that is going to be used primarily in the styles modal, but I can also see devs wanting to use it in their own templating. Can you give an example, like the other field types, of use in a template, please?
boutell
left a comment
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.
Just commenting...
I love this
Are the defaults of the individual fields really null? Shouldn't they be zeroes? There's no way to go back to "no value at all" once you interact with this field (I assume), so we may as well skip the compexity of null?
I'm sure Stu will chime in, but |
|
I was originally thinking I'd have a boolean "if" field toggling each of these anyway. Then I removed it for But for If we want to make it possible to "re-nullify" this field through the UI, I can leave it that way. If we don't, I can just put in "do you want padding at all" and "do you want margin at all" booleans to control it via "if". I'm good either way, let me know. |
Setting only one of the four values should be a valid use case for this field. Marking the other 'unset' values as zero is creating overrides that may not be obvious. You can return to the 'blank' all-null state by using the Clear button that appears once you enter any value. |
You can re-nullify everything via the Clear button that appears once any value is entered. > But for Specific on this idea, I think we should have a field parameter that essentially expands a field and acts as an indicator of 'i want this field'.
See video example |
|
Got it! I stand 100% corrected re: how |
|
(Poor Stu's PR rather heh) |
Noted here b1773cd |
No description provided.