-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Components: replace TabPanel
with Tabs
in inline color picker
#57292
Conversation
Size Change: +69 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
Flaky tests detected in eed87b9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7282912389
|
9c4d971
to
eed87b9
Compare
eed87b9
to
e4862fd
Compare
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.
Left a comment, but otherwise code changes LGTM, and tests well as per instructions.
Regarding the style override, that rule is such a wide rule that I'd be tempted to assume that it wasn't meant to target the tabs. Let's wait for folks from @WordPress/gutenberg-design to chime in, but I'd be tempted to keep this PR as-is, so that we ensure better consistency across all tabbed interfaces in the editor.
This seems fine to me. The horizontal padding seems to be identical (12px), and the vertical padding rarely comes into play since tabs have a static height. |
THank you for the feedback, Jay and Joen! @chad1008 , feel free to merge after addressing all pending feedback |
Thank you all for the feedback! I've applied the recommended style cleanups and will merge once CI passes its final run! |
04e543b
to
415e971
Compare
What?
Replaces the legacy TabPanel component with the new Tabs component.
Why?
Part of the work outlined in #52997
How?
TabPanel
is replaced byTabs
and its sub-components.Other Stuff
This change does cause a small shift in the width of the tabs. There is a style override that no longer applies after this change because we're not rendering a
Button
, and therefore the tabs do not have the.components-button
class associated with them.My assumption is that we'd like to keep the buttons on these tabs consistent with the previous styling. Would it be best to do that by
button[role=tab]
(I'm not sure if this would have unintended side effects elsewhere)cc'ing @WordPress/gutenberg-design for input. (this isn't an urgent ping, I'll be afk for the holidays coming up, but I'll circle back to this PR in the new year).
Testing Instructions
trunk
(pending an answer to the padding question above)Testing Instructions for Keyboard