Tabs, TabPanel: Align styles with wp-ui#78418
Conversation
|
Size Change: +733 B (+0.01%) Total Size: 7.97 MB 📦 View Changed
ℹ️ View Unchanged
|
|
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. |
|
Flaky tests detected in b3993f8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26060561923
|
ciampo
left a comment
There was a problem hiding this comment.
LGTM 🚀
also cc @jameskoster for any specific design feedback?
There was a problem hiding this comment.
I assume that we want to keep COLORS.ui.textDisabled (since we're still leaning into Emotion and shared JS variables), even if there's a small drift compared to @wordpress/ui (#949494 vs #8d8d8d)
The same would apply for the gray[ '700' ] and gray[ '100' ] variables.
To be clear: I like how it is currently in this PR and it's fine for me to ship it as-is
There was a problem hiding this comment.
Right. I thought about converting to CSS modules first so we can use the exact tokens, but given that this is a private component, we can perhaps just delete all the code once all the instances are migrated.
|
Looks good to me. |
What?
Part of #76135
Updates the selected tab colors and indicator styles in
@wordpress/componentsTabsandTabPanelto better match@wordpress/uiTabs.Why?
So it's less jarring for users during the transition phase with mixed usage of the components.
How?
Tabsindicators from accent/brand styling to neutral colors.TabPaneltab text, selected indicator, vertical selected state, and focus ring styles to use the corresponding design system tokens.TabPanelstyles with design system tokens.Testing Instructions
Components/TabPanelandComponents/Tabs.Screenshots or screencast