-
Notifications
You must be signed in to change notification settings - Fork 800
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
External Media / AI Image Generator: update button style #39985
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
e07b745
to
22016bc
Compare
See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices.
22016bc
to
33d72bd
Compare
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.
Thanks for spinning this up so quickly, @jeherve! Appreciate you.
Styling
- ✅ With Gutenberg, all buttons look great.
- 🟠 Without Gutenberg, I see the 40px height is being forced, but all other buttons are 36px tall.
Not sure what's the best way to handle this difference; cc'ing @jasmussen for guidance.
With Gutenberg | Without Gutenberg |
---|---|
Spacing
- ✅ All good here!
Breakpoints
- 🟠 Still seeing the buttons next to each other when the image block is included in a narrower parent element (e.g.: columns).
This one is not strictly about media queries and screen sizes, unfortunately. @jasmussen Can you please let us know what's the canonical way Core handles this? Are you using container queries or something else? Thanks in advance.
Good point. This is going to be addressed in 6.7, releasing Nov 12th. Whether you want to omit those height changes until then, or do something else in the mean-time, not sure what's best. For what it's worth, it's been a mistake to introduce that height prop the way it was done, this has been acknowledged in the main issues. It was just a height change and should not have been opt-in. |
@jeherve this can be solved if you include both |
Is this handled by Edit: ignore my comment, Joen responded above. |
It's a resizeObserver under the hood, that's used for the placeholder componentry. But it adds classes, is-small, is-medium, and is-large depending on the placeholder width. This mainly becomes someting to be aware of when you change the DOM of the plugin, notably the wrapper around the two buttons here looks like it caused some of the incorrect stacking. |
Thanks for the context, @jasmussen! @jeherve considering the next Jetpack release is happening on November 5th, I'd say we should include the 40px change. Even if it causes differences in previous versions, that's the most future-proof option. |
I just pushed 64dfc80 to attempt to address that.
This is annoying since we ideally want to support both the "soon to be current" version of WordPress (6.7) as well as the previous version (6.6). |
The way I see it we're still supporting both, only optimizing for the newer version. It's not that different from a progressive enhancement: it won't appear broken in 6.6, but will it definitely look better from 6.7 onwards. The alternative seems to not overcorrect right now which would mean:
|
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.
Looks great in my testing after the latest change! Thanks again, @jeherve 🌟
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.
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
* External Media / AI Image Generator: update button style See #39934 Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"): - the buttons should be 40px high, like in Core. See WordPress/gutenberg#46741 - the buttons should use the secondary style variant by default, to match the "Insert from URL" button. - the buttons should take the full width of the placeholder on mobile devices. * Ensure the buttons look good in narrow parent blocks See Automattic/jetpack#39985 (comment) * Simplify styling of the main wrapper The wrapper itself is still necessary unfortunately. Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> * Add logic to change button size based on wp & Gutenberg versions The other buttons in the Image block were changed in this PR: WordPress/gutenberg#65361 This was released with Gutenberg 19.4, and will be included in WP version 6.7. Let's consequently set our own buttons to match. --------- Co-authored-by: Filipe Varela <keoshi@keoshi.com> Co-authored-by: jasmussen <joen@git.wordpress.org> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11660975525 Upstream-Ref: Automattic/jetpack@746d1fc
See #39934
Proposed changes:
Let's change the overall styles of the 2 buttons ("Select Image" and "Generate with AI"):
Warning
This PR only addresses the design issues outlined in the comments of #39934. It does not remove or make any changes to the duplicate "Generate with AI" button or the "Select Image" button, as we discussed in #39934 and #39933. This is something we can do in a follow-up PR, after more discussion if necessary.
Other information:
Jetpack product discussion
See conversation in #39934
Does this pull request change what data or activity we track or use?
Testing instructions:
Note
This needs to be tested in different enviroments:
Once you've done this, you will also want to test the other blocks using the External Media option: