-
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
Block inspector: tabs slot fill should appear below post/block buttons in DOM #47623
Comments
Thanks for submitting this issue @alexstine 👍
Is the content you mention here the block info card and block variations as indicated in the reproduction instructions?
I'm not sure exactly which slot fill you are suggesting shouldn't be a slot fill. Could you please expand on this for me? Also, while I'm seeking your wisdom, how do you see the proposed switch of the Post/Block (fake) tabs to a TabPanel component, impacting the sub-tab navigation experience being discussed here? |
Yes, it is.
I am not sure if the slot fill is a slot fill at all, point was, it should not be. I am referring to the area where the sub tabs are injected in the inspector. I think a slot fill after the sub tabs is okay but not before. What we do not want is other developers to have somewhere to inject content that can badly impede inspector navigation. The flow should be from the fake tabs, sub tabs, the close button, and then the rest of the content. Developers should not be able to add anything until after the close button. This help? Thanks. |
Appreciate the clarifications @alexstine, thanks.
The block's information and its transforms aren't a slot fill. Currently, these are rendered above the sub-tabs on the Block tab as you noted. In case it interests you, where this happens can be found in the block inspector here. Given the
If a block is to render tabs, all the slot fills for the InspectorControls will render within those tabs. If a block isn't to render tabs, all the slot fills will render directly into the content of the Block tab underneath the block info card and variations.
This is the aspect of this issue that requires some action and a little time to figure out how to achieve it.
It's my understanding that at the moment, they can't as all the slot fills for the InspectorControls are rendered within the sub-tab panels. |
@aaronrobertshaw This all makes sense then. Now the hard part, figuring out how to re-order the DOM without making a design mess. I will let you decide how this moves forward as this is not an issue I can work on due to the visual complexity. |
Description
In the block inspector, while the block tab is selected, the sub tabs slot fill can contain content above the slot fill which may make the tabs less discoverable to screen reader users. The sub tabs should appear below the post/block tabs and directly above the close button. This slot fill probably should not be a slot fill at all, it should be dedicated to tab navigation without the ability for developers to add other content that could distract from the sub tab navigation experience.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Gutenberg: trunk
OS: Windows 10 Professional
Firefox: latest
WordPress: 6.2-alpha-54678
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: