-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Text boxes global settings setup #889
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,107 @@ | |
} | ||
] | ||
}, | ||
{ | ||
"name": "Text boxes", | ||
"settings": [ | ||
{ | ||
"type": "header", | ||
"content": "Typography" | ||
}, | ||
{ | ||
"type": "header", | ||
"content": "Spacing" | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_padding", | ||
"min": 0, | ||
"max": 20, | ||
"step": 1, | ||
"unit": "px", | ||
"label": "Padding", | ||
"default": 10 | ||
}, | ||
{ | ||
"type": "header", | ||
"content": "Borders" | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_border_opacity", | ||
"min": 0, | ||
"max": 100, | ||
"step": 5, | ||
"unit": "%", | ||
"label": "Opacity", | ||
"default": 50 | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_border_width", | ||
"min": 0, | ||
"max": 10, | ||
"step": 1, | ||
"unit": "px", | ||
"label": "Thickness", | ||
"default": 1 | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_radius", | ||
"min": 0, | ||
"max": 30, | ||
"step": 3, | ||
"unit": "px", | ||
"label": "Corner radius", | ||
tyleralsbury marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"default": 0 | ||
}, | ||
{ | ||
"type": "header", | ||
"content": "Shadow" | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_shadow_opacity", | ||
"min": 0, | ||
"max": 100, | ||
"step": 5, | ||
"unit": "%", | ||
"label": "Opacity", | ||
"default": 0 | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_shadow_horizontal_offset", | ||
"min": -20, | ||
"max": 20, | ||
"step": 2, | ||
"unit": "px", | ||
"label": "Horizontal offset", | ||
"default": 0 | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_shadow_vertical_offset", | ||
"min": -20, | ||
"max": 20, | ||
"step": 2, | ||
"unit": "px", | ||
"label": "Vertical offset", | ||
"default": 0 | ||
}, | ||
{ | ||
"type": "range", | ||
"id": "text_boxes_shadow_blur_radius", | ||
"min": 0, | ||
"max": 20, | ||
"step": 2, | ||
"unit": "px", | ||
"label": "Blur radius", | ||
"default": 0 | ||
} | ||
] | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we already move these to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I find it easier to wait until we have the final copy and then do that, otherwise you need to go from one file to another to make the associations rather than just get them all in one place, then move them to their final spot. |
||
{ | ||
"name": "t:settings_schema.typography.name", | ||
"settings": [ | ||
|
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.
This is where trying to use a single pixel value rather than magic sizes to control multiple sections is going to be tricky. Or at least require a larger range. With banner_box previously designed at ~4rem, the current max for text boxes being 2rem is going to slim down those designs.
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.
Good point. We may just want to expand the range for this one, too, but we'll need to look at the overall impact and make some decisions on that. We could do some magic, but that might be frustrating for a merchant who does want all text boxes to be the same.
cc @melissaperreault
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.
I agree with Ken. The Multicolumn section has some inner padding right now that doesn't allow the border to ever touch the text, while the banner section doesn't.
The border is very close to the text and touches the button(s) if they're present.
I think we'll need at least a little bit of default padding.
Same for the password page:

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.
An alternative would be for it to be allowed to touch but to add
overflow: hidden
so that a merchant could create a text box with the buttons flush with the border - it could be an effect they're looking for.