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

[Designer][Accessibility] Set FieldPicker initial focus to first item #5678

Merged
merged 4 commits into from
Apr 16, 2021

Conversation

golddove
Copy link
Member

@golddove golddove commented Apr 16, 2021

Related Issue

Fixes ADO 30910259

Description

FieldPicker sets its focus on a container view, which isn't useful for keyboard users. PR changes it to set focus on root tree item instead.

Sample Card

N/A

How Verified

Local build:
30910259

Microsoft Reviewers: Open in CodeFlow

@golddove golddove added this to the 21.04 milestone Apr 16, 2021
@golddove golddove self-assigned this Apr 16, 2021
@ghost
Copy link

ghost commented Apr 16, 2021

Hi @golddove. Thanks for helping make the AdaptiveCards JS renderer + tooling better. As additional verification, once the JS build succeeds, please go to the test site to test out your website/designer changes.

Copy link
Member

@dclaux dclaux left a comment

Choose a reason for hiding this comment

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

Looks good, just a nit.

render(rootElementBounds: ClientRect): HTMLElement {
const rootElement = super.render(rootElementBounds);
rootElement.tabIndex = -1;
return rootElement;
Copy link
Member

Choose a reason for hiding this comment

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

Empty line before return

@golddove golddove enabled auto-merge (squash) April 16, 2021 18:47
@golddove golddove merged commit 66af500 into main Apr 16, 2021
@golddove golddove deleted the golddove/30910259 branch April 16, 2021 19:44
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
…microsoft#5678)

* [Designer][Accessibility] Set FieldPicker initial focus to first item

* Added lint rule: empty line before return

* Newline
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.

None yet

2 participants