Skip to content

fix: Improve keyboard accessibility of slider field#2727

Open
gonfunko wants to merge 1 commit into
v13from
let-it-slide
Open

fix: Improve keyboard accessibility of slider field#2727
gonfunko wants to merge 1 commit into
v13from
let-it-slide

Conversation

@gonfunko

Copy link
Copy Markdown
Contributor

The basics

The details

Proposed Changes

This PR improves the keyboard accessibility of the slider field. Specifically, it:

  • Waits for the dropdown to animate in before focusing the slider, which fixes screenreader readouts
  • Adds a keyboard listener that commits the value on enter and reverts it on Escape

@gonfunko gonfunko requested a review from a team as a code owner June 24, 2026 15:27
@gonfunko gonfunko requested review from maribethb and removed request for a team June 24, 2026 15:27
handled = true;
}

if (handled) {

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.

Does this handle firing the final block change event too? I expected there to be more to do about setting the final value

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yep, the superclass' widgetDispose_ handler takes care of that when it's automatically invoked by the WidgetDiv being dismissed here.

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