Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(time-picker): prevent time-picker part steppers from being focusable #6982

Merged

Conversation

jcfranco
Copy link
Member

Related Issue: #6851

Summary

This ensures the hour, minute and second inputs are the only focusable elements within the component. Previously, focus would land on the hour-increment stepper (due to tabIndex=1 on steppers and the component using delegatesFocus: true), which doesn't listen to up/down keys.

@jcfranco jcfranco requested a review from a team as a code owner May 19, 2023 00:54
@jcfranco jcfranco changed the title fix(input-time-picker): prevent time-picker part steppers from being focusable fix(time-picker): prevent time-picker part steppers from being focusable May 19, 2023
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label May 19, 2023
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label May 19, 2023
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

👍

@jcfranco jcfranco merged commit 41701a5 into master May 19, 2023
11 of 13 checks passed
@jcfranco jcfranco deleted the jcfranco/6851-prevent-time-part-steppers-from-receiving-focus branch May 19, 2023 16:24
@github-actions github-actions bot added this to the 2023 May Priorities milestone May 19, 2023
@eriklharper
Copy link
Contributor

Many thanks for fixing this! I started noticing that as a result of the focus trap changes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants