-
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
Background Image Support: Hide the background image reset button when there's no image #55973
Conversation
Size Change: +5 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Side note: While working on this, I noticed that when you reset the image from I can reproduce it on the trunk, so it's probably a different issue with the tools panel. Will investigate separately. ScreencastCleanShot.2023-11-08.at.19.50.44.mp4 |
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.
Works as expected, thanks @Mamaduka!
@Mamaduka can we tag this as a fix for 6.4.1? |
@richtabor, it should be okay, as this fixed a missed bug in WP 6.4. cc @mikachan |
Thanks for the quick fix! 🙇 |
The ToolsPanel always shows a |
Update: @Mamaduka and @richtabor I just gave this a test on 2023-11-09.10.20.53.mp4I wonder if we can explicitly set focus to the |
Update to the update: I have a fix for the focus loss issue up over in #55984 — the idea there is to shift focus and simulate a click on the toggle button to close the dropdown and move focus to the toggle button when the background image is reset. I think that should hopefully get us back to the desired keyboard accessibility while preserving this fix! 🤞 |
I just cherry-picked this PR to the 6.4-next-point-release branch to get it included in the next release: b1b4034 |
What?
Fixes #55969
PR hides the "Reset" button for the background image block support panel when there's no image.
Why?
See #55969
Testing Instructions
Testing Instructions for Keyboard
Same.
Screenshots or screencast
CleanShot.2023-11-08.at.19.34.55.mp4