-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Tabs: Tidy up UI for controls #75309
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
Merged
+76
−65
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
714a900
Remove layout controls from Tab block
mikachan f921267
Remove Tab label UI
mikachan 2e11387
Use ToolsPanel for Tab
mikachan d74455f
Use ToolsPanel for Tabs
mikachan 28c3bd0
Revert unrelated changes
mikachan f0c4f1d
Remove Tabs Menu Item layout controls
mikachan 3f714a7
Fix Tab checkbox control
mikachan 266be9c
Remove unrelated readme change
mikachan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Setting
supports.layouttotruedoes not remove the Layout panel; it enables layout support with default settings, and the block editor’s layout hook will still render the Layout inspector controls when layout support is present (unlessallowEditingis explicitly disabled). If the intent is to remove the Layout panel for this block, setlayoutsupport to an object withallowEditing: false(or removelayoutsupport entirely if it’s not needed).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.
I went with the default Layout control that is used when layout is set to true. Should we remove the Layout panel from these blocks entirely, @jasmussen?
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.
Assuming you mean these?
They feel valid enough to me, as they provide nice layout options for you, do you agree?
This one we might not need. How would you ever see the result of an alignment inside?
It hits me we need an icon for this. I don't love the following, but I think it can do in a pinch, and we can come back and improve it later:
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.
Yes, they're the ones.
Yeah, I think I prefer having the default layout options for these blocks. I just wanted to double-check we shouldn't completely remove them.
Agree for Tab Menu Item - will remove the Layout options for this in this PR.
Amazing, thank you! I'm opening a separate PR for the icons, will include that one there.