-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[RNMobile] Remove non-functioning caption button from mobile block toolbar #53010
[RNMobile] Remove non-functioning caption button from mobile block toolbar #53010
Conversation
Size Change: 0 B Total Size: 1.44 MB ℹ️ View Unchanged
|
Flaky tests detected in 9cb0630. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5677744257
|
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 addressing this so quickly. 🎉
I verified the changes function as expected in both the mobile and web editors, using an iPhone 14 Pro simulator and macOS Safari respectively.
I also added a few additional labels to this PR to communicate intent and linked it to #52977 so that the bug report is automatically closed when this PR is merged.
What?
Removes a non-functioning caption button from the mobile Gallery block toolbar. On mobile, the caption can be edited directly via the text input beneath the gallery item, and the caption button is not utilized in the same way it is on web.
Why?
A button that is used to add/remove gallery captions on the web is now present in the mobile gallery toolbar after recent Editor UX changes. This is very similar to the MediaReplaceFlow component being removed from the toolbar for mobile.
This change removes (or hides) a non-functioning button on mobile as further discussion on the button's behavior continues: #52977 (comment)
How?
Moves the web's caption button into a
Platform.isWeb
boolean block.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast