-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Remove appender from unselected Buttons and Social Icons block. #25518
Conversation
( ! selectedBlockClientId || | ||
isAnotherDefaultAppenderAlreadyDisplayed ) |
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.
In case you're wondering, the alteration here prevents non-root-level appenders from rendering when no block is selected.
Size Change: +4 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
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.
Seems ok. Not sure if we have enough appender e2e tests to check for regressions.
Description
Fixes #21805. Turns out this was a generic issue, and fixing it fixes similar issues with other blocks, e.g. the Social Icons block. It also helps to unblock #23222, which in turn will help unblock #23168. In other words, please review this PR. 😛
How has this been tested?
I've made sure that the Buttons block appender now only appears when the Buttons block or one of its children is selected. The appender is not visible when any other blocks (or no blocks) are selected, as expected.
Screenshots
Note that no blocks are selected in any of these pictures. Note that in the old (broken) behavior, the appender is invisible (but still taking up space) for the Buttons block; I'm still not sure why it was invisible for the Buttons block.
Before
After
Checklist: