-
Notifications
You must be signed in to change notification settings - Fork 804
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
Block: Subscription Form Improvements #15076
Comments
A border radius control that applies to the input and the button would make sense as a start. |
I like the input field and the button to be next to each other, and that makes sense most of the time, especially the width isn't a concern. But when the available width is restricted (like a sidebar), the current pattern (the field and the button to be on its line) would leave a wider input field. It should accommodate both cases. |
Thanks for all the above, I'll start working on this today. |
Opening an English-language post containing the block in wp-admin with the user locale set to a different language, breaks the block. pbNZNv-1Q-p2 |
Based on the pattern designs above, I think these are the settings that should accommodate all of them: The exception being the subscriber count placement, which I will handle separately. @mtias Interested in your feedback here regardless of where these settings end up (sidebar or toolbar). Looking at the way color panels are handled it looks like it could be difficult to separate color settings out into multiple panels. I do feel as though organizing settings by what you are changing is easier to parse than trying to include multiple color settings in one panel. |
Nice work, this looks good. Just a few notes:
|
This is fine for most of the patterns above, but these two I wondered about: I could see a scenario like the first one where you might want a bordered button, with a background color only textfield.
That seems fine to me. I was considering it controlling both placeholder (at a lower opacity) and the actual text color. Fine to leave it alone right now.
👍
That sounds great, we can always whip these out later. |
Right, perhaps we should support it but not expose it in the UI. My worry is that, while it allows some of the patterns we might want to do, it will also lead to some weird combinations by users. |
@pablohoneyhoney This is a core component, so this wording is present on all blocks that use font sizing. It would be good to open a core Gutenberg ticket for the suggestion so it can change everywhere. The PR #15107 now includes all of the settings discussed above. |
Just wanted to share a pattern that came up in a theme design @melchoyce is working on: Structurally, this is a bit similar to this pattern that @pablohoneyhoney shared above. Just with some different styles: In any case, it would be really cool to be able to create this today using this block. Glad to see there's work happening on this. 👍 |
The pattern that Pablo shared is possible. The one from Mel is a bit trickier. It could be done with control over the border thickness of each side of the button, but the space above and below the narrow border complicates it a bit. |
It could be done with a "Button inside of text field" option, and then control over individual button border sides. |
Yeah, in the near-term I think it's totally understandable that a little refinement like that might be omitted. 👍 |
Yes, I think this one falls a bit in the realm of "the theme needs to supply some custom CSS". |
Related: #15474 |
Current state:
List from @mtias:
We need to be able to support a block pattern such as:
@iamtakashi @pablohoneyhoney Do we have any other block patterns using this block for reference?
The text was updated successfully, but these errors were encountered: