Repository navigation
Conversation
The Tab block was removed in #77439, and tab buttons are now rendered by the Tab List block without the wp-block-tab class, so the classic theme reset styles added in #77607 no longer apply. Target the buttons inside the Tab List block instead. Co-authored-by: t-hamano <54422211+t-hamano@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMtGRwVR85RzV9cmdeqr9c
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +36 B (0%) Total Size: 9.07 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Custom Completer: should allow newlines after multiple option completions in
|
|
P.S. I noticed that Core has its own equivalent stylesheet, which has become outdated. I have submitted WordPress/wordpress-develop#14826 to reference the latest stylesheet synced from Gutenberg. |
What?
Follow up to #77607 and #77439.
Updates the selector of the Tabs reset styles in
classic.scssfrom.wp-block-tabto.wp-block-tab-list button.Why?
#77607 added reset styles for tab buttons in themes without a
theme.json, targeting.wp-block-tab. The Tab block was later removed in #77439, and tab buttons are now rendered by the Tab List block asbuttonelements without thewp-block-tabclass. As a result,.wp-block-tabno longer matches anything, and the color, hover/focus, and focus outline resets are not applied in classic themes.How?
Target the
buttonelements inside the Tab List block.Testing Instructions
buttonelements (e.g. Twenty Twenty or Twenty Twenty-One).Screenshots
Twenty Twenty-One
Twenty Twenty
Twenty Nineteen
Twenty Seventeen
Use of AI Tools
This PR was authored with Claude Code, and reviewed by me.