gutenberg
gutenberg copied to clipboard
Do not show Advanced Settings toggle & Block sidebar if there are no settings to display
I have created a custom block to show a 'Ribbon' like graphic, however the block will not have any advanced settings associated with it. The block also does not support custom CSS classes and HTML anchors, so those do not show.
You can see in the screenshot the baron sidebar pane that the block has. Also the Show/Hide Advanced Settings toggle isn't necessary at this point.
As the sidebar can be used to also show what the block name is and a description, I would say this is ok to have still show on a block without settings. I could see a possibility of having a hook to turn on/off in block but I feel for now let's leave this as is and we can always reconsider.