Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @jasmussen! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
|
Also, in addition to unifying to use the same icon between Tab Panel and Accordion Panel, we should unify the titles:
Right now it's called Tab Panels (plural). @mikachan what do you think? I will need to change this code: Better do this now before beta, yes? |
|
Size Change: -116 B (0%) Total Size: 2.98 MB
ℹ️ View Unchanged
|
t-hamano
left a comment
There was a problem hiding this comment.
Thanks for working on this! I think this block deserves further polish, but for now I think it's okay to ship the PR as is.
I don't think we should be doing that here: building in flex/flow/constrained/grid into the Tab Content block itself.
I agree with this. Additionally, the following points can also be improved.
- Remove the Label UI. This is because the tab label can be edited directly by clicking the tab itself. Text fields cannot express HTML tags.
- Refactor the panel by using the
ToolsPanel.
Ultimately, the UI should be simplified as follows. Of course, this can be addressed in a follow-up PR rather than in this one.
| label={ __( 'Remove the current tab' ) } | ||
| onClick={ removeTab } | ||
| showTooltip | ||
| text={ __( 'Remove Tab' ) } | ||
| text={ __( 'Remove tab' ) } |
There was a problem hiding this comment.
Can we remove the unnecessary label and showTooltip prop?
Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com>
|
Thanks so much for working on this, @jasmussen!
Yes, agreed, we should rename "Tab Panels" to "Tab Panel". That change can be made as part of this PR or a follow-up, either is fine. And yes, best to do this before Beta. Also happy for this PR to land as it is, and we can address the other issues mentioned in follow-ups. Once it's landed, we can list the remaining issues on the main tracking issue: #73230. |
|
Thanks for the feedback, I believe I've addressed the label feedback, and the rename. But because the rename is kind of a big thing, I would appreciate a re-testing of this branch to ensure everything is caught correctly. It's a breaking change for existing tabs (all the more important to do it soon). |
|
Feel free to push a commit, thank you! I have to briefly move on to another thing. |
|
Actually, went ahead with the rename, should be fixed, but would again appreciate a quick check, thank you! |
|
I spotted some other "tab panels" references, so I went ahead and updated these as well. It'd probably be good to ensure these changes work for you as well, but otherwise, this is testing well for me! |
|
I made some small changes too, but overall I think it's good. |
|
Flaky tests detected in 8e7ea34. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/21662515678
|
|
Merged. Thanks all. I will see about the followups now, I think I'll start with opening an issue that captures icons and unfinished thoughts from this thread, then dive into code if time permits. |
|
Created #75195 as a followup. |
* Tabs block: Polish * Update packages/block-library/src/tab/add-tab-toolbar-control.js Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com> * Remove label. * Rename to "Tab-Panel" * Remove showTooltip prop. * Rename tab-panels folder. * Rename other tab panels refs * Additional renaming --------- Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: mikachan <mikachan@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>






What?
Followup to #69789. Polishes the new Tabs block.
Why?
The block is very functional and nice, but doesn't follow best practices in all cases. This PR polishes up a few of the pieces.
How?
Before:

Title Case for many labels and items, toggle instead of checkbox, a typographic widow, few small pieces. After:
Testing Instructions
Insert the Tabs block, explore.