Repository navigation
Add classname instead of inline background color when using Text Highlight - #84609
Vedant-Gandhi wants to merge 1251 commits into
Conversation
🤖 PR meta 🤖🎉 PropsUnlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @ciampo, @t-hamano, @aduth, @jasmussen, @Mamaduka, @jameskoster, @fcoveram, @mirka, @noruzzamans, @lancewillett, @aaronrobertshaw, @andrewserong, @ramonjd, @Pathan-Amaankhan, @talldan, @luisherranz, @hbhalodia, @ntsekouras, @lazerg, @Pranjal1423, @HrithikDalal, @ellatrix, @obenland, @SainathPoojary, @westonruter, @kraftbj, @louwie17, @chihsuan, @annezazu, @tellthemachines, @scruffian, @simison, @cbravobernal, @jsnajdr, @enejb, @youknowriad, @salvatorecorsi, @yyppsk, @shail-mehta, @im3dabasia, @swissspidy, @ndiego, @himanshupathak95, @shimotmk, @oandregal, @rudrakshi-gupta, @jeryj, @mikachan, @maheshbohara, @gutenbergplugin, @verofasulo, @Kotiyajenish, @richtabor, @manzoorwanijk, @umeshnevase, @dsas, @R1shabh-Gupta, @afercia, @AhmarZaidi, @yashjawale, @shreyasikhar, @joedolson, @gigitux, @mattcowan, @Mayank-Tripathi32, @saranshsinhaa, @Swanand01, @peterwilsoncc, @getdave, @draganescu, @ikamal7, @carolinan, @jffng, @dhruvikpatel18, @SirLouen, @Vedant-Gandhi, @sirreal, @adamsilverstein. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the |
* QueryControls: Migrate ordering to UI SelectControl * QueryControls: Document the Order by migration * QueryControls: Trim ordering regression tests * QueryControls: Remove migration-only browser tests * QueryControls: Scope overlay compatibility to Order by --- Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
* UI: Simplify Avatar API and add activity ring * UI: Link Avatar changelog entries to PR * Avatar: Honor image configurations and improve activity contrast * Core Fields: Migrate author avatars to the standalone API * Avatar: Use adaptive fill without an activity halo * Core Fields: Correct changelog section order * Avatar: Keep activity rings symmetric at high DPI * Avatar: Refine image props, focus styling, and author alignment * Avatar: Preserve the role of custom render elements --- Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: aduth <aduth@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: fcoveram <fcoveram@git.wordpress.org>
) * DatePicker: Outline today when another date is selected * DatePicker: Document the outline for today * DatePicker: Use the default button background for today * DatePicker: Keep today in sync with neutral outline Button tokens --- Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: jeryj <jeryj@git.wordpress.org> Co-authored-by: aduth <aduth@git.wordpress.org>
…assertion (WordPress#87215) When Gutenberg_REST_Block_Editor_Settings_Controller_Test is executed in isolation, test_get_items() fails with "Attempt to read property 'registered' on null" because _wp_get_iframed_editor_assets() expects $wp_scripts to be initialized. Additionally, test_get_items_does_not_check_block_bindings_with_the_site_editor_context_for_mobile() previously used a loose assertNotTrue() comparison with a null-coalescing fallback. • Call wp_scripts() in set_up() to ensure the script registry is available. • Replace loose assertNotTrue() with strict assertFalse(), matching the adjacent desktop test assertion. Co-authored-by: noruzzamans <noruzzaman@git.wordpress.org> Co-authored-by: lancewillett <lancewillett@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: akasunil <sunil25393@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
… for PHPStan (WordPress#87095) Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
…ordPress#87065) Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: lancewillett <lancewillett@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: noruzzamans <noruzzaman@git.wordpress.org>
…ching (WordPress#87214) * Patterns: Keep non-override bindings when detaching a synced pattern Detaching a synced pattern removed `metadata.bindings` from every block, so bindings to sources such as post meta were lost along with the pattern overrides. Remove only the bindings whose source is `core/pattern-overrides`, which only apply while a block is part of a synced pattern, and keep the rest. Add tests for a block with only pattern overrides, one with another source, and one with both. * docs: Adds PR number to changelog ---- Co-authored-by: Pathan-Amaankhan <akrocks@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: Marc-pi <mdxfr@git.wordpress.org>
…eload (WordPress#87158) The lifecycle spec polls the fixture's log with `JSON.parse`. Right after a traversal or reload replaces the document, the log still holds the server-rendered `not hydrated` placeholder, so a poll tick that landed before hydration threw a `SyntaxError` instead of retrying. Poll through a reader that returns `null` for the placeholder, so the wait keeps going until the log has hydrated.
…e is attached to (regression from WordPress#72905) (WordPress#87087) Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
…#87154) * Replace font line height Sass variables with design tokens Swap call sites of the `$font-line-height-*` Sass variables from `@wordpress/base-styles` for the matching `--wpds-typography-line-height-*` tokens, and disallow the variables with Stylelint. The variable definitions hold literal values, so the rule does not flag them. * Components: Link line height token changelog entry Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: aduth <aduth@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
…ps (WordPress#86804) * ToggleGroupControl: Use the `@wordpress/ui` Tooltip for option tooltips Option tooltips used the components Tooltip, which portals to the body with a fixed z-index and so appears behind `@wordpress/ui` overlays. The `@wordpress/ui` Tooltip portals into the compat overlay slot, where DOM order decides stacking. * Add the changelog link * Focus the changelog entry on observable behavior * Group option tooltip delays with a tooltip provider Without a provider, Base UI waits the full delay before each tooltip, so moving the pointer across options was slower than with the legacy tooltip, which grouped delays globally. Also trim the changelog entry. * Derive the tooltip children type from the trigger's render prop Also shorten the changelog entry to the stacking fix. Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
* Build: Update Vitest to 5.1.1 * Build: Link Vitest changelog entries to PR * Tests: Align the Vitest browser provider and reject empty CI shards
…t among the loaded authors (WordPress#87137) * Fix avataar not showing selected name * Update changelog entry * Address feedbacks Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
…ror on the front end and stops the post from saving (WordPress#86715) Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
* Build: Update Storybook to 10.6.8 * Build: Link Storybook changelog entries to PR --- Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org>
…WordPress#87219) * SearchableChipSelect: Use a single string for the chips toolbar label * Add changelog entry * SearchableChipSelect: Reword the changelog entry * SearchableChipSelect: Use a ternary for the chips toolbar label * SearchableChipSelect: Keep the single toolbar label and reword the changelog entry --------- Unlinked contributors: lazerg. Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: tobifjellner <tobifjellner@git.wordpress.org>
…ns (WordPress#86797) * Components: Replace the accent-darker SCSS variables with design tokens Use the brand foreground token for the ToolsPanel reset label, and let Button's disabled tertiary style apply to MenuItem instead of overriding it with the accent-darker color and reduced opacity. Remove the unused `$components-color-accent-darker-10` and `-20` SCSS variables. * Add the changelog link * MenuItem: Show aria-disabled items as disabled in forced colors mode Dropping the disabled tertiary opacity removed the only cue that the aria-disabled "Reset all" item was disabled in forced colors mode. * MenuItem: Keep the pressed foreground for disabled items in forced colors Button fills pressed disabled items with GrayText and sets a Canvas foreground. The aria-disabled GrayText color loaded after it and hid the label and icon. * MenuItem: Show disabled info text in the disabled color in forced colors Chromium forced colors gave the info text the enabled text color while the label used GrayText. Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
…lumn (WordPress#87068) * fix: preserve selected cell on column insert Preserves sectionName and rowIndex when inserting a column in the Table block to prevent losing selection and crashing on subsequent row operations. * docs: add PR link to table changelog entry * docs: move table changelog entry to unreleased section --------- Co-authored-by: Pranjal1423 <pranjal4804@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: noruzzamans <noruzzaman@git.wordpress.org> Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
…tips (WordPress#86807) * AlignmentMatrixControl: Use the `@wordpress/ui` Tooltip for cells Show the cell tooltips in the `@wordpress/ui` overlay slot so they appear above `@wordpress/ui` overlays, and make each cell's accessible name its translated label, since the new tooltip does not add a description. * Link the changelog entry to the PR * Remove the implementation precedent from the changelog entry * Remove the tooltip test and shorten the changelog entry Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
* TimePicker: Show the time zone detail in an infotip The time zone detail was in a tooltip on a non-focusable element, so only mouse users could reach it. Make the abbreviation a popover trigger from @wordpress/ui that opens on hover or activation, so keyboard, touch, and screen reader users can reach it too. The popover portals into the compat overlay slot, so it also shows above @wordpress/ui overlays. * Add changelog link * TimePicker: Add a story with a site time zone The time zone abbreviation and its infotip only show when the site time zone differs from the user's, which the existing stories never set up. * TimePicker: Underline the time zone only when it opens an infotip Also render the time zone story in its own iframe on the docs page, so its site time zone setting does not apply to the other stories there, and update the changelog entry. * Remove the underscore fix from the changelog entry It landed separately in WordPress#86826. * TimePicker: Use an unstyled Button for the time zone trigger The @wordpress/ui Button resets the native button styles and provides the focus ring, so the trigger only needs the styles that differ. * TimePicker: Use the border radius token for the time zone trigger * TimePicker: Rename the numeric time zone abbreviation test block * TimePicker: Name the click in the Escape test for the time zone infotip Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
…ponents denylist (WordPress#86799) * Storybook: Test that component statuses match the use-recommended-components denylist Check that a not-recommended @wordpress/components story has a denylist entry and no manifest tag, that a denylisted component's story is not-recommended, and that migration guides and their denylist links match. NumberControl is recorded as the one deliberate exception. * Storybook: Address review of the component status test Run unit tests for changes under storybook/, which now holds unit tests. Exempt NumberControl only from a missing denylist entry, report stories and guides the test cannot read, read <Meta> attributes in any order, and point to the manifest regeneration commands. * Storybook: Narrow the unit test exclusion and simplify the exception list Keep skipping unit tests for most changes under storybook/, and run them only for its tests and the top-level modules they import. Record the NumberControl exception's reason in a code comment. * Storybook: Clarify the NumberControl exception and the guide link test name * Storybook: Match whole docs IDs in migration guide links A link with extra characters after --migration-guide passed both link checks, because they matched the valid prefix. * Storybook: Compare whole guide paths and check story-level manifest tags Treat every Storybook link in a denylist message as a migration guide link and compare its full path query value, so typos after or inside the --migration-guide suffix fail. Read the manifest tag from each story's combined tags, since a story can opt in to the manifest on its own. * Storybook: Check only migration guide links in denylist messages Allow links to other Storybook pages in denylist messages, and keep comparing the whole path of each migration guide link. * Storybook: Require a story for each denylisted component Count a denylist entry as covered when a story has it as its component or lists it in subcomponents, so a removed or renamed story no longer drops its denylist entry from the check. Remove the check that guide links point to existing guides, which mostly repeated the link check for not-recommended components. * Storybook: Check the parent story status of denylisted subcomponents A denylisted component documented only in a story's subcomponents now needs that story to be not-recommended, like a component with its own story. * Storybook: Allow denylisting a subcomponent of a recommended story A story's status covers the whole page, so a subcomponent it lists can be denylisted while the parent stays recommended. Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
The lookup's error response was read as data, so no GitHub user matched a WordPress.org account. Every contributor was then listed as unlinked, without a warning. The lookup rejects requests with more than 100 entries this way, which a branch with a broken rebase reached in WordPress/gutenberg#84609. A failed lookup now fails the run, as a network error already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What?
Why?
#49332
How?
Add logic to detect if selected background color is used from palette and add it as
has-*syntax instead of inlining the color else fallback to color inlining.Testing Instructions
has-*-background-color.Screenshots or screencast tp
Use of AI Tools
I have used Claude Sonnet 5.5 or reviewed the issue as well as using it as an assistant to write the code. It has also been used to write comments in the code as well as reivewing the test cases and updating them as needed. I have thoroughly reviewed the code and ensured it does not introduce any side effects on other components apart from the fix being introduced.