Repository navigation
Components: replace TabPanel with Tabs in the Font Library Modal - #57181
Conversation
|
Size Change: -10 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
086a3d4 to
e0a6006
Compare
e0a6006 to
4da77d1
Compare
ciampo
left a comment
There was a problem hiding this comment.
I rebased this PR to include the latest changes (including updates to node/npm version).
Just for fun, modify the order of the
DEFAULT_TABSarray
I had lots of fun, thank you for recommending this activity!
TabPanel with Tabs in the Font Library ModalTabPanel with Tabs in the Font Library Modal
4da77d1 to
8c2a183
Compare
b3d65a1 to
1def6f1
Compare
|
Flaky tests detected in 1def6f1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7389121467
|
|
rebased, CI checks are passing! |
ciampo
left a comment
There was a problem hiding this comment.
🚀
Good to merge after all feedback gets addressed
|
Thanks @ciampo, waiting on CI checks now! |
What?
Replaces the legacy TabPanel component with the new Tabs component.
Why?
Part of the work outlined in #52997
How?
TabPanelis replaced byTabsand its sub-components. I've also tried to clean up the use ofnamevsidfor tab identification.TabPanelused anameproperty, butTabsdeals exclusively withids. Eliminatingnamefrom the code will hopefully make it easier to parse. This specifcially doesn't impact thenameproperty on font collections being passed in to the library, as that nomenclature still felt like it made sense.Testing Instructions
trunk, confirm that each tab visually looks the same, that it behaves the same, and the it's displaying the correct contentDEFAULT_TABSarray inpackages/edit-site/src/components/global-styles/font-library-modal/index.jsso thatinstalled-fontsis no longer listed first. Reload the site editor and confirm that Library is still the initially selected tab even if it the first one in the listTesting Instructions for Keyboard
tabpanelcontents.