Skip to content

Components: Expose Tabs as private API - #55327

Merged
chad1008 merged 3 commits into
trunkfrom
tabs-private-apis
Oct 13, 2023
Merged

Components: Expose Tabs as private API#55327
chad1008 merged 3 commits into
trunkfrom
tabs-private-apis

Conversation

@chad1008

Copy link
Copy Markdown
Contributor

What?

Exposes the new Tabs component as a private API.

Why?

To experiment with Tabs in the editor as a substitute for TabPabel implementations, or use cases where TabPanel wasn't suitable and custom solutions were needed instead.

How?

Adding Tabs to the package's list of private APIs

Testing Instructions

All tests should pass, but no impactful changes are being made on this PR.

@chad1008 chad1008 added [Package] Components /packages/components [Type] Experimental Experimental feature or API. labels Oct 12, 2023
@chad1008 chad1008 self-assigned this Oct 12, 2023
@chad1008
chad1008 requested a review from ajitbohra as a code owner October 12, 2023 21:04

@brookewp brookewp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this just needs a CHANGELOG (a similar PR #53262), and then it's ready to go! ✅

@tyxla tyxla left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Comment thread packages/components/src/private-apis.ts
Comment on lines 64 to +65
Theme,
Tabs,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're intentionally keeping the Tabs. namespace because we're aiming to access the components with Tabs.TabList and Tabs.Tab right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct!

chad1008 and others added 2 commits October 13, 2023 10:56
Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
@chad1008
chad1008 enabled auto-merge (squash) October 13, 2023 15:00
@chad1008
chad1008 merged commit b2ac3a5 into trunk Oct 13, 2023
@chad1008
chad1008 deleted the tabs-private-apis branch October 13, 2023 15:42
@github-actions github-actions Bot added this to the Gutenberg 16.9 milestone Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Experimental Experimental feature or API.

3 participants