Skip to content

fix: Make zoom to fit plugin keyboard and screenreader accessible#2728

Merged
gonfunko merged 2 commits into
v13from
zoom-to-fit
Jun 30, 2026
Merged

fix: Make zoom to fit plugin keyboard and screenreader accessible#2728
gonfunko merged 2 commits into
v13from
zoom-to-fit

Conversation

@gonfunko

@gonfunko gonfunko commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The basics

The details

Proposed Changes

This PR fixes #2712 by making the zoom to fit control keyboard navigable and screenreader accessible following a similar pattern to the built-in zoom controls. This depends on a new release of core that adds Capability.FOCUSABLE. With these changes, the control can be tabbed to, enter/space will activate it, it has a screenreader label and role of button, and focusing it will draw a highlight ring and darken the icon in the same manner as hovering over it.

@gonfunko gonfunko requested a review from a team as a code owner June 24, 2026 16:25
@gonfunko gonfunko requested review from mikeharv and removed request for a team June 24, 2026 16:25

@mikeharv mikeharv 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.

Looks good. My questions do not block approval.

Comment thread plugins/zoom-to-fit/src/index.ts Outdated
Comment thread plugins/zoom-to-fit/src/index.ts
@gonfunko gonfunko merged commit 1e735ef into v13 Jun 30, 2026
4 checks passed
@gonfunko gonfunko deleted the zoom-to-fit branch June 30, 2026 15:47
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