Skip to content

Notes: Show the pressed state of reaction pills in forced colors mode - #85904

Merged
t-hamano merged 4 commits into
trunkfrom
fix/notes-reaction-pressed-forced-colors
Oct 29, 2026
Merged

t-hamano merged 4 commits into
trunkfrom
fix/notes-reaction-pressed-forced-colors

Conversation

@t-hamano

@t-hamano t-hamano commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What?

In forced colors mode, a reaction pill the current user has reacted with now looks different from one they have not.

Why?

Note reactions show whether the current user has reacted through the Button variant:

  • A pill without the user's reaction: minimal + neutral
  • A pill with the user's reaction: outline + brand

Neither pill gets the Button's aria-pressed styling, and in forced colors mode both variants look the same. The add-reaction picker already fills its checked items with SelectedItem in forced colors, so the picker showed the state but the pills did not.

How?

As far as I remember, ui/Button intentionally doesn't provide aria-pressed styling for other variants, so this PR fixes it on the Notes side:

  • Fill pressed pills in forced colors, as the picker does.
  • Keep the fill on disabled pills in resolved notes, in the disabled colors.
  • Remove the text backplate that hid the emoji and count on the fill, in both the pills and the picker.

That said, I'd appreciate any advice on whether ui/Button needs a change for this.

Testing Instructions

  1. Turn on Windows High Contrast, or emulate forced-colors: active in Chrome DevTools (Rendering tab).
  2. Open a post with a note that has two reactions: one from you and one from another user only.
  3. Check that the pill you reacted with has a SelectedItem fill, and that its emoji and count are readable.
  4. Check that the other pill keeps its outline only.
  5. Open the add-reaction picker and check that the checked item has no square behind its emoji.
  6. Resolve the note, open it from "All notes", and check that the pill you reacted with has a GrayText fill.
  7. Turn off forced colors and check that the pills and the picker look the same as before.

Screenshots or screencast

The screenshots below were taken with Chromium's forced colors emulation. ❤️ has a reaction from another user only, and 👍 has a reaction from the current user. The rows are the default display, forced colors (light) and forced colors (dark).

Open note

note-picker

Resolved note

note-resolved

Use of AI Tools

This PR was authored with Claude Code (Claude). The author reviewed the changes and the screenshots.

@github-actions github-actions Bot added the [Package] Editor /packages/editor label Oct 29, 2026
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: +297 B (0%)

Total Size: 8.56 MB

📦 View Changed
Filename Size Change
build/styles/editor/style-rtl.css 30.5 kB +70 B (+0.23%)
build/styles/editor/style-rtl.min.css 26.2 kB +79 B (+0.3%)
build/styles/editor/style.css 30.6 kB +69 B (+0.23%)
build/styles/editor/style.min.css 26.2 kB +79 B (+0.3%)

817e2c6 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 68b9c61 trunk % Change
timeToFirstByte 36.45 ms +18.52% -7% 35.85 ms +21.2% -1.39% 1.67%
largestContentfulPaint 64 ms +6.25% -6.25% 64 ms +9.38% -6.25% 0%
lcpMinusTtfb 25.6 ms +18.36% -4.88% 26 ms +13.85% -7.5% -1.54%
wpBeforeTemplate 18.93 ms +22.35% -4.86% 18.92 ms +25.85% -1.53% 0.05%
wpTemplate 14.46 ms +5.05% -9.61% 14.2 ms +6.2% -5% 1.83%
wpTotal 33.24 ms +18.8% -7.07% 32.8 ms +19.21% -1.52% 1.34%
wpMemoryUsage 7.70 MB +0% -0% 7.67 MB +0% -0% 0.43%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 68b9c61 trunk % Change
timeToFirstByte 30.2 ms +10.6% -4.14% 29.85 ms +15.91% -1.51% 1.17%
largestContentfulPaint 68 ms +5.88% -0% 68 ms +5.88% -0% 0%
lcpMinusTtfb 38.2 ms +2.49% -2.88% 38.3 ms +2.09% -1.7% -0.26%
wpBeforeTemplate 16.84 ms +9.14% -4.22% 16.52 ms +18.52% -1.39% 1.94%
wpTemplate 10.64 ms +10.62% -4.14% 10.72 ms +8.77% -5.5% -0.75%
wpTotal 27.53 ms +11.26% -3.67% 26.99 ms +18.45% -1.37% 2%
wpMemoryUsage 6.39 MB +0% -0% 6.36 MB +0% -0% 0.53%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 68b9c61 trunk % Change
mediaProcessingJpeg 235.72 ms +1.51% -2.07% 231.57 ms +2.83% -1.77% 1.79%
mediaProcessingAvif 3758.89 ms +0.99% -1.16% 3781.38 ms +0.79% -1.61% -0.59%
mediaProcessingJpegToAvif 2587.67 ms +1.1% -0.32% 2612.25 ms +0.11% -0.31% -0.94%

media-upload

Metric 68b9c61 trunk % Change
jpegUploadProcessing 1427.16 ms +0.2% -1.78% 1409.13 ms +1.13% -0.83% 1.28%
pngUploadProcessing 182.14 ms +3.28% -1.45% 187.03 ms +2.95% -3.04% -2.61%
largeJpegUploadProcessing 1418.31 ms +2.51% -1.65% 1408.99 ms +2.6% -0.85% 0.66%
multipleImageUploadProcessing 1474.58 ms +0.62% -0.33% 1468.18 ms +1.03% -0.72% 0.44%

post-editor

Metric 68b9c61 trunk % Change
serverResponse 399 ms +2.99% -6.21% 391.05 ms +5.24% -4.33% 2.03%
firstPaint 404.69 ms +5.14% -38.68% 409.68 ms +1.69% -2.02% -1.22%
domContentLoaded 740.14 ms +1.18% -2.11% 732.4 ms +3.62% -1.98% 1.06%
loaded 740.99 ms +1.16% -2.12% 733.24 ms +3.59% -2% 1.06%
firstContentfulPaint 426.93 ms +4.11% -3.94% 415.23 ms +3.39% -1.56% 2.82%
firstBlock 2355.44 ms +0.66% -0.2% 2335.63 ms +0.81% -1.8% 0.85%
type 16.53 ms +2.24% -11.68% 15.58 ms +6.16% -3.21% 6.1%
typeWithoutInspector 15.52 ms +8.57% -10.7% 15.95 ms +5.83% -6.71% -2.7%
typeWithTopToolbar 21.44 ms +6.58% -7.88% 20.44 ms +5.09% -10.81% 4.89%
typeContainer 7.76 ms +5.67% -15.46% 7.46 ms +10.32% -8.18% 4.02%
focus 106.5 ms +4.3% -8.71% 100.22 ms +3.72% -2.58% 6.27%
firstFocus 200.04 ms +0% -0% 199.28 ms +0% -0% 0.38%
selectAll 342.14 ms +10.24% -5.04% 305.42 ms +6.06% -0.04% 12.02%
undo 26.48 ms +2.57% -4.42% 25.12 ms +14.65% -2.67% 5.41%
listViewOpen 66.55 ms +4.03% -7.17% 61.35 ms +6.26% -5.15% 8.48%
inserterOpen 35.95 ms +4.81% -10.04% 31.65 ms +10.65% -1.99% 13.59%
inserterHover 10.62 ms +15.54% -7.25% 9.69 ms +11.87% -11.15% 9.6%
inserterSearch 7.75 ms +7.74% -0.52% 7.11 ms +18% -3.38% 9%
loadPatterns 551.2 ms +8.16% -2.37% 538.07 ms +4.07% -2.8% 2.44%
wpTotal 389.48 ms +3.27% -6.11% 381.18 ms +5.03% -4.49% 2.18%
wpMemoryUsage 14.73 MB +0% -0% 14.72 MB +0% -0% 0.1%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 68b9c61 trunk % Change
serverResponse 265.98 ms +8.57% -7.22% 284.13 ms +1.23% -7.98% -6.39%
firstPaint 218.16 ms +38.33% -20.76% 219.74 ms +33.98% -20.87% -0.72%
domContentLoaded 584.9 ms +3.52% -3.86% 603.17 ms +1.63% -3.42% -3.03%
loaded 585.78 ms +3.54% -3.87% 604.17 ms +1.64% -3.42% -3.04%
firstContentfulPaint 335.83 ms +2.6% -10.14% 339.92 ms +6.42% -4.07% -1.2%
firstBlock 2421.75 ms +4.58% -1.55% 2450.74 ms +2.83% -1.13% -1.18%
type 14.2 ms +5.35% -2.54% 14.32 ms +6.56% -6.56% -0.84%
navigate 92.5 ms +5.85% -3.52% 91.18 ms +1.72% -4.55% 1.45%
loadPatterns 847.31 ms +21.62% -3.25% 985.16 ms +13.61% -8.97% -13.99%
loadPages 959.73 ms +2.31% -1.32% 1066.28 ms +0.61% -1.63% -9.99%
wpTotal 259.36 ms +8.72% -7.37% 277.18 ms +1.19% -8.1% -6.43%
wpMemoryUsage 12.77 MB +0% -0% 12.73 MB +0% -0% 0.27%
wpDbQueries 44.5 +1.12% -1.12% 44.5 +1.12% -1.12% 0%

817e2c6 Run

🏁 Flaky tests

Some 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 option selection via keypress event in /test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js, passed after 2 failed attempts.
Error: apiRequestContext.fetch: socket hang up
Call log:
  - → DELETE http://localhost:8891/wp-json/wp/v2/users/29?force=true&reassign=1
    - user-agent: Playwright/1.63.0 (x64; ubuntu 24.04) node/24.20 CI/1
    - accept: */*
    - accept-encoding: gzip,deflate,br
    - X-WP-Nonce: 5c730dc78c
    - cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_da433b7faafd8180ebeb1624ceeeab7e=admin%7C1793441266%7Cp63zdfY9O1ZCB1NbO66t2gn8QlnjyVNgGJnXCJKvbAc%7C0231ef778e5c095806ceaf5ba1d80042a350d84c7da58746aa28536978717649; wp-settings-time-1=1793269134

    at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:111:39)
    at RequestUtils.deleteUser (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/users.ts:91:30)
    at map (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/users.ts:116:51)
    at RequestUtils.deleteAllUsers (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/users.ts:116:5)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js:73:3

Undo restores the post selection when another synced entity is loaded (RTC WebSocket) in /test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

  Object {
    "attributeKey": "content",
    "blockIndex": 0,
    "content": "abcdef",
-   "endOffset": 3,
-   "offset": 3,
+   "endOffset": 1,
+   "offset": 1,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts:363:5
Undo restores the post selection when another synced entity is loaded in /test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 2
+ Received  + 2

  Object {
    "attributeKey": "content",
    "blockIndex": 0,
    "content": "abcdef",
-   "endOffset": 3,
-   "offset": 3,
+   "endOffset": 1,
+   "offset": 1,
  }

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-undo-redo.spec.ts:363:5
can be copied from multi selection in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toBe(expected) // Object.is equality

- Expected  - 2
+ Received  + 2

@@ -1,18 +1,18 @@
  <!-- wp:list -->
  <ul class="wp-block-list"><!-- wp:list-item -->
- <li>one</li>
+ <li>ne</li>
  <!-- /wp:list-item -->

  <!-- wp:list-item -->
  <li>two</li>
  <!-- /wp:list-item --></ul>
  <!-- /wp:list -->

  <!-- wp:list -->
  <ul class="wp-block-list"><!-- wp:list-item -->
- <li>one</li>
+ <li>ne</li>
  <!-- /wp:list-item -->

  <!-- wp:list-item -->
  <li>two</li>
  <!-- /wp:list-item --></ul>
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:33:49
inserts a block should show a blue line indicator in /test/e2e/specs/editor/various/inserting-blocks.spec.js, passed after 1 failed attempt.
Error: expect(locator).toBeVisible() failed

Locator: locator('data-testid=block-list-insertion-point-indicator')
Expected: visible
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" locator('data-testid=block-list-insertion-point-indicator') with timeout 5000ms
  - waiting for locator('data-testid=block-list-insertion-point-indicator')

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:674:50
should indent and outdent level 2 in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Indent"]')

    at Editor.clickBlockToolbarButton (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:17:15)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:933:3
should keep nested list items when merging with paragraph in /test/e2e/specs/editor/blocks/list.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 17
+ Received  +  2

  Array [
    Object {
      "attributes": Object {
        "content": "p",
-     },
-     "name": "core/paragraph",
-   },
-   Object {
-     "attributes": Object {
-       "content": "1",
+       "dropCap": false,
      },
+     "innerBlocks": Array [],
      "name": "core/paragraph",
-   },
-   Object {
-     "innerBlocks": Array [
-       Object {
-         "attributes": Object {
-           "content": "i",
-         },
-         "name": "core/list-item",
-       },
-     ],
-     "name": "core/list",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:601:41
should replace selected non-breaking spaces from the toolbar in /test/e2e/specs/editor/various/rich-text.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 1
+ Received  + 1

  Array [
    Object {
      "attributes": Object {
-       "content": "one two three",
+       "content": "ne two three",
      },
      "name": "core/paragraph",
    },
  ]

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:1053:41
should select a single paragraph on triple click in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('[name="editor-canvas"]').contentFrame().getByRole('document', { name: 'Block: Paragraph' }).first()
    - locator resolved to <p role="document" data-empty="false" aria-multiline="true" aria-readonly="false" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-attribute-key="content" id="block-ac585507-8513-4376-afae-85f2a7f3e5dd" data-block="ac585507-8513-4376-afae-85f2a7f3e5dd" class="block-editor-rich-text__editable block-editor-block-list__block wp-block wp-block-paragraph rich-text">One two three</p>
  - attempting click action
    2 × waiting for element to be visible, enabled and stable
      - element is visible, enabled and stable
      - scrolling into view if needed
      - done scrolling
      - <button id="_r_1p_" type="button" tabindex="-1" aria-label="Link" aria-pressed="false" aria-haspopup="true" aria-expanded="false" data-toolbar-item="true" class="components-button components-toolbar-button is-compact has-icon">…</button> from <div tabindex="-1" data-wp-c16t="true" data-wp-component="Popover" class="components-popover block-editor-block-popover block-editor-block-list__block-popover is-positioned is-unstyled">…</div> subtree intercepts pointer events
    - retrying click action
    - waiting 20ms
    2 × waiting for element to be visible, enabled and stable
      - element is visible, enabled and stable
      - scrolling into view if needed
      - done scrolling
      - <button id="_r_1p_" type="button" tabindex="-1" aria-label="Link" aria-pressed="false" aria-haspopup="true" aria-expanded="false" data-toolbar-item="true" class="components-button components-toolbar-button is-compact has-icon">…</button> from <div tabindex="-1" data-wp-c16t="true" data-wp-component="Popover" class="components-popover block-editor-block-popover block-editor-block-list__block-popover is-positioned is-unstyled">…</div> subtree intercepts pointer events
    - retrying click action
      - waiting 100ms
    17 × waiting for element to be visible, enabled and stable
       - element is visible, enabled and stable
       - scrolling into view if needed
       - done scrolling
       - <button id="_r_1p_" type="button" tabindex="-1" aria-label="Link" aria-pressed="false" aria-haspopup="true" aria-expanded="false" data-toolbar-item="true" class="components-button components-toolbar-button is-compact has-icon">…</button> from <div tabindex="-1" data-wp-c16t="true" data-wp-component="Popover" class="components-popover block-editor-block-popover block-editor-block-list__block-popover is-positioned is-unstyled">…</div> subtree intercepts pointer events
     - retrying click action
       - waiting 500ms

    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:978:5
should set attributes for multiple paragraphs in /test/e2e/specs/editor/various/multi-block-selection.spec.js, passed after 1 failed attempt.
Error: expect(received).toMatchObject(expected)

- Expected  - 5
+ Received  + 0

@@ -1,14 +1,9 @@
  Array [
    Object {
      "attributes": Object {
        "content": "1",
-       "style": Object {
-         "typography": Object {
-           "textAlign": "center",
-         },
-       },
      },
    },
    Object {
      "attributes": Object {
        "content": "2",

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:917:41
three users concurrently edit a large post with diverse blocks in /test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts, passed after 2 failed attempts.
TimeoutError: locator.waitFor: Timeout 17500ms exceeded.
Call log:
  - waiting for getByRole('button', { name: /Collaborators list/ }) to be visible

    at map (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/fixtures/collaboration-utils.ts:193:7)
    at CollaborationUtils.waitForMutualDiscovery (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/fixtures/collaboration-utils.ts:188:10)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts:416:28
TimeoutError: locator.waitFor: Timeout 17500ms exceeded.
Call log:
  - waiting for getByRole('button', { name: /Collaborators list/ }) to be visible

    at map (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/fixtures/collaboration-utils.ts:193:7)
    at CollaborationUtils.waitForMutualDiscovery (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/fixtures/collaboration-utils.ts:188:10)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/collaboration/collaboration-stress.spec.ts:416:28

817e2c6 Run

@t-hamano t-hamano self-assigned this Oct 29, 2026
@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Feature] Notes Phase 3 of the Gutenberg roadmap around block commenting and removed [Package] Editor /packages/editor labels Oct 29, 2026
@github-actions github-actions Bot added the [Package] Editor /packages/editor label Oct 29, 2026
@t-hamano
t-hamano requested review from a team and Mamaduka October 29, 2026 10:01
claude and others added 4 commits October 29, 2026 19:02
Forced colors draw the outline and minimal Button variants alike, so a
pill the current user has reacted with looked the same as one they had
not. Fill the pressed pill with SelectedItem, as the picker already does
for checked items.

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_011g9URuk43hMzNaSbp1QMFN
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_011g9URuk43hMzNaSbp1QMFN
Fill a pressed pill on a resolved note with GrayText and invert its
text to Canvas, so it stays apart from the other disabled pills.

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_011g9URuk43hMzNaSbp1QMFN
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_011g9URuk43hMzNaSbp1QMFN
@t-hamano
t-hamano force-pushed the fix/notes-reaction-pressed-forced-colors branch from d852fa4 to 817e2c6 Compare October 29, 2026 10:02
@t-hamano
t-hamano marked this pull request as ready for review October 29, 2026 10:10

@Mamaduka Mamaduka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Aki!

@yogeshbhutkar yogeshbhutkar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice attention to detail. I took some time testing this too and checking other places, and the changes looks good.

pr.mov

@t-hamano

Copy link
Copy Markdown
Contributor Author

Thanks for the review, both of you!

@t-hamano
t-hamano merged commit ec0e2fe into trunk Oct 29, 2026
98 checks passed
@t-hamano
t-hamano deleted the fix/notes-reaction-pressed-forced-colors branch October 29, 2026 10:47
@github-actions github-actions Bot added this to the Gutenberg 24.4 milestone Oct 29, 2026
Vedant-Gandhi pushed a commit to Vedant-Gandhi/gutenberg that referenced this pull request Nov 30, 2026
…WordPress#85904)

* Notes: Show the pressed state of reaction pills in forced colors mode

Forced colors draw the outline and minimal Button variants alike, so a
pill the current user has reacted with looked the same as one they had
not. Fill the pressed pill with SelectedItem, as the picker already does
for checked items.

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_011g9URuk43hMzNaSbp1QMFN

* 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_011g9URuk43hMzNaSbp1QMFN

* Show the pressed state of disabled reaction pills too

Fill a pressed pill on a resolved note with GrayText and invert its
text to Canvas, so it stays apart from the other disabled pills.

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_011g9URuk43hMzNaSbp1QMFN

* Drop the backplate behind checked picker items too

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_011g9URuk43hMzNaSbp1QMFN

---------

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: yogeshbhutkar <yogeshbhutkar@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Notes Phase 3 of the Gutenberg roadmap around block commenting [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Package] Editor /packages/editor [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants