Repository navigation
Backport to 24.3: 36 cherry-picks for stable - #85836
Conversation
* add pseudo elements support for textinput elements * Add pseudo-selector support for text inputs * Add Core backport changelog entry for PR 71634 * Fix text input pseudo selector rendering * added test suite for pseudo selectors on inputs * Keep pseudo-element selectors outside :where() for responsive variation elements Responsive element styles inside a block style variation always wrapped the selector in :root :where(). Pseudo-elements such as ::placeholder are not valid inside :where(), so browsers matched nothing and the styles never applied. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Output text input validation states before focus states Unconstrained inputs always match :valid, so validation styles listed after focus styles would permanently override them. Static states now come first and user action states last. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Cap pseudo-element specificity with :root :where(base)::placeholder Pseudo-element rules are emitted as :root :where(base)::placeholder so they get the same specificity whether they come from an element, a block element, or a block style variation. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Match trunk's text input selector order in the render test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix Prettier formatting in the global styles render pseudo selector Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Global Styles: Use :user-valid and :user-invalid for text inputs :valid and :invalid match before a visitor touches the field, so empty required fields were styled as invalid on page load. Also document the text input states and ::placeholder in the theme.json guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test text input state order and block-level placeholder styles in PHP Matches the JS test that outputs focus after validation states, and covers a block-level ::placeholder rule without a variation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add a changelog entry for the text input pseudo-selectors Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Ben Dwyer <ben@scruffian.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org> Co-authored-by: scruffian <scruffian@git.wordpress.org> Co-authored-by: mikachan <mikachan@git.wordpress.org> Co-authored-by: sarthaknagoshe2002 <sarthaknagoshe2002@git.wordpress.org>
* Global Styles: Add pseudo-selector support for select elements * Global Styles: Test select element pseudo-selectors Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: List the pseudo-selectors each element supports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add the Core backport changelog entry for select pseudo-selectors Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Global Styles: Name the select pseudo-selectors in the @SInCE entry Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Global Styles: Test every select state and a block-level select Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Point the backport changelog to the select-only Core PR Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org> Co-authored-by: mikachan <mikachan@git.wordpress.org>
* fix: remove duplicate focus outline * docs; add changelog entry * docs: update changelog to use correct section --------- Co-authored-by: yashjawale <yashjawale@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
* feat: use design system focus ring for snackbar * docs: add changelog entry * docs: update changelog to use correct section --------- Co-authored-by: yashjawale <yashjawale@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
…85172) Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org>
…ts accordingly (#84980) Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
* Remove explicit heading level on ColorToolsPanel * Changelog ---- Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
* feat: use design system focus ring * docs: update changelog entry with PR no. * fix: prevent animations on item add/removal * docs: update changelog * docs: correct changelog to have category --- Co-authored-by: yashjawale <yashjawale@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
…5355) * Meta Boxes: Use the design system focus ring for the panel toggle * Meta Boxes: Add Changelog Entry --- Co-authored-by: SainathPoojary <sainathpoojary@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
* Icons: Add new form based icons. * Update changelog. * Remove form-button icon, normalize form icons for scaling strokes Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org>
…85366) Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
* Icons: Restore the missing speech bubble in postComments The `postComments` icon has always been two overlapping speech bubbles. The conversion to a stroke drawing in #82540 carried over only the lower-right bubble, so the icon has since been indistinguishable from a single comment bubble. Restore the upper-left bubble. It reuses the bubble geometry shared with `postCommentsForm` and `postCommentsCount`, mirrored so the tail points down and to the left, and offset from the lower bubble by the same 6/9 units the icon used before the stroke conversion. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Icons: Link the postComments changelog entry to its PR Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Icons: Order the unreleased changelog sections Merging trunk appended the `database` icon's New Features section below the Bug Fixes section this branch added, which `validate-changelogs` rejects: New Features sorts above Bug Fixes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: scruffian <275961+scruffian@users.noreply.github.com>
* DataViews: Use the design system focus ring for list items. * DataViews: Add Changelog Entry --- Co-authored-by: SainathPoojary <sainathpoojary@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
) * Block Directory: Standardize focus rings on downloadable blocks * Block Directory: Document the downloadable block focus update * Block Directory: Suppress the hover box-shadow when a focused item is also hovered * Block Directory: Add PR reference to changelog * Block Directory: Use subtle background tint on hover and add border-radius --- Co-authored-by: himanshupathak95 <abcd95@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
…ons (#85363) * Global Styles: Add icons and tweak styling for element and blocks buttons in global styles * Update changelog * Make sure the comment is in the right place Unlinked contributors: jinaparekh14. Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: mikachan <mikachan@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: fushar <fushar@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org>
* Storybook: Compare composite focus indicators * Design system: Use neutral highlights and focus rings for popup items * Design system: Fix changelog section ordering * UI: Share popup highlight tracking and handle same-item pointer hover * UI: Keep virtual popup focus rings with the input focus * Combobox: Align popup search fields with items * Combobox: Inset option highlights without changing the search field * UI: Share input and list highlight handlers * Autocomplete: Restore focus ring at grid boundaries * UI: Extract popup option alignment for separate review * UI: Separate keyboard option rings from pointer hover * UI: Simplify active option rings to input focus * UI: Use solid brand highlights for popup items * UI: Preserve popup colors for headings and disabled links * Menu: Keep open submenu parents neutral when highlighted * UI: Restore submenu hover and join adjacent highlights * UI: Keep popup highlights on the active item --- Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: fcoveram <fcoveram@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
…ring (#85444) * UnitControl: Use the design system outline for the unit select focus ring 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_01X59npFqGS2ts1UwMA89DjL * Add changelog entry 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_01X59npFqGS2ts1UwMA89DjL * Consolidate shared hover and focus styles 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_01X59npFqGS2ts1UwMA89DjL * Draw the small unit select focus ring inside the input 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_01X59npFqGS2ts1UwMA89DjL * Use the small border radius token for the default unit select 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_01X59npFqGS2ts1UwMA89DjL * Reset the wp-admin focus box-shadow on the unit select 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_01X59npFqGS2ts1UwMA89DjL --------- Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
#82040) Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: swissspidy <swissspidy@git.wordpress.org>
Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: sanketio <sanketparmar@git.wordpress.org>
* UnitControl: Use neutral color for static unit labels * Link UnitControl changelog to draft PR Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: dinhtungdu <dinhtungdu@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org>
…in a tooltip (#85721) * Block Styles: Clamp variation labels to two lines and show truncated labels in a tooltip Labels that wrap are aligned to the start on every line instead of centering only the last one, short labels stay centered, and a label that's cut off shows its full text in a tooltip. Co-authored-by: t-hamano <54422211+t-hamano@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011g9URxU1VKPfbZWKaTMXcE * Add changelog entry Co-authored-by: t-hamano <54422211+t-hamano@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011g9URxU1VKPfbZWKaTMXcE * Always show the block style label in a tooltip Co-authored-by: t-hamano <54422211+t-hamano@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011g9URxU1VKPfbZWKaTMXcE * Shorten the label alignment comment Co-authored-by: t-hamano <54422211+t-hamano@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011g9URxU1VKPfbZWKaTMXcE * Reduce the diff of the block styles tooltip Co-authored-by: t-hamano <54422211+t-hamano@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011g9URxU1VKPfbZWKaTMXcE * Center every line of wrapped block style labels Co-authored-by: t-hamano <54422211+t-hamano@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011g9URxU1VKPfbZWKaTMXcE --------- Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
* Menu: Show focus on disabled UI items * Fix UI disabled menu focus changelog reference * Menu: Use highlighted state for disabled item focus rings --- Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org>
…set (#85200) Co-authored-by: ariel-maidana <arielmaidana@git.wordpress.org> Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: softglazee <softglaze@git.wordpress.org>
🤖 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. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +81.4 kB (+0.91%) Total Size: 9.04 MB 📦 View Changed
🏁 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. Regression: updating a specific option will only change its value and will not corrupt others in
|
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
…logic (#85390) Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
`KeyedOption.keywords` is still required on release/24.3; trunk made it optional in #85034. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This also cherry-picks two PRs that adapt to WordPress core trunk changes made after
The last commit adds |
t-hamano
left a comment
There was a problem hiding this comment.
I believe everything has been cherry-picked correctly.
Similar to #84704.
Currently, 36 PRs merged into trunk after 24.3.0 RC1 carry the
Backport to Gutenberg RClabel, and none of them is onrelease/24.3yet.This PR cherry-picks them onto
release/24.3, so they ship in 24.3.0:Selectplaceholder #85172 SelectControl: Fix default options showing theSelectplaceholdersingleaction context #85186 Actions API: Remove the unsupportedsingleaction contextmedia-utils/MediaEdit: use design system focus ring #84940media-utils/MediaEdit: use design system focus ring.alignleft/.alignright#83520 Layout: Pair physical margins with the physical float on.alignleft/.alignrightEach commit keeps the message and author of its trunk commit. Changelog entries go under each package's 24.3 RC version section, since they ship in that release.
A few needed manual conflict resolution, because trunk refactors they build on are not on
release/24.3:wp/7.2backport in [WP 7.2] Components: Standardize checkbox and radio focus outlines (#85379) #85436, so it does not need Base Styles: Remove checkbox and radio Sass mixins #85248.@wordpress/uiimport line.$dashicon_replacementsproperty, which belongs to Icons: Promote Dashicon replacements tocore-adminand map their Dashicons #85541.After merging, a few manual steps are needed.
Gutenberg 24.4milestone toGutenberg 24.3, so the stable release notes list them.Backport to Gutenberg RClabel from them.Testing Instructions
AI usage disclosure: cherry-picks, conflict resolution. Reviewed by me.