Skip to content

Fix: a11y: Add focus button back to generate/regenerate button on alt text generation#645

Merged
dkotter merged 1 commit into
WordPress:developfrom
hbhalodia:fix/issue-589-4
Jun 2, 2026
Merged

Fix: a11y: Add focus button back to generate/regenerate button on alt text generation#645
dkotter merged 1 commit into
WordPress:developfrom
hbhalodia:fix/issue-589-4

Conversation

@hbhalodia

@hbhalodia hbhalodia commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

What?

Part of: #589

Why?

How?

  • PR adds ref to button and check once generated apply the focus to the buttons.

Use of AI Tools

  • Claude Code, Opus 4.8
  • Used on initial research and findings.
  • Also used to identify and fix the same issue.

Testing Instructions

  1. Enable alt text generation experiment and configure the API key and model.
  2. Go to any page/post.
  3. Add the image bloc and switch to block settings (inspector panel).
  4. There would be button to generate alt text, Click that.
  5. Once generated, the focus will move to Apply button, After apply/dismiss, focus will move to Regnerate/generate button.

Screenshots or screencast

Screen.Recording.2026-06-02.at.2.20.16.PM.mov

Changelog Entry

Fixed - Focus lost when generating the alt text in image block inspector controls.

Open WordPress Playground Preview

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

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: hbhalodia <hbhalodia@git.wordpress.org>

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

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.50%. Comparing base (6b36539) to head (f22bf52).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #645   +/-   ##
==========================================
  Coverage      74.50%   74.50%           
  Complexity      1740     1740           
==========================================
  Files             85       85           
  Lines           7523     7523           
==========================================
  Hits            5605     5605           
  Misses          1918     1918           
Flag Coverage Δ
unit 74.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dkotter dkotter added this to the 1.1.0 milestone Jun 2, 2026
@dkotter dkotter merged commit b0f9f7e into WordPress:develop Jun 2, 2026
23 of 24 checks passed
jorgefilipecosta pushed a commit that referenced this pull request Jun 15, 2026
…ss on alt text (#645)

Fixed - Lost focus when generating the alt text in image block inspector controls.

Co-authored-by: hbhalodia <hbhalodia@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants