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

Don't skip over action buttons when in vertical alignment #7158

Merged
merged 10 commits into from
Apr 6, 2022

Conversation

PankajBhojwani
Copy link
Contributor

@PankajBhojwani PankajBhojwani commented Mar 18, 2022

Closes #7156

When we activate ShowCard, we want the next item in focus order to be the content that was just newly presented, but we only want this behaviour when the action buttons are horizontally aligned. Because in vertical alignment, we get strange behaviour where it looks like action buttons are being skipped over.

This commit makes it so after activating a ShowCard action, we only skip over any remaining action buttons if the actions buttons are horizontally aligned aligned.

Microsoft Reviewers: Open in CodeFlow

@ghost
Copy link

ghost commented Mar 18, 2022

Hi @PankajBhojwani. 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.

@PankajBhojwani PankajBhojwani changed the title [DRAFT] Fix focus order Don't skip over ShowCardAction buttons when in vertical alignment Mar 18, 2022
@PankajBhojwani PankajBhojwani marked this pull request as ready for review March 18, 2022 22:59
@PankajBhojwani PankajBhojwani changed the title Don't skip over ShowCardAction buttons when in vertical alignment Don't skip over action buttons when in vertical alignment Mar 18, 2022
@ghost ghost added the no-recent-activity label Mar 24, 2022
@ghost
Copy link

ghost commented Mar 24, 2022

Hi @PankajBhojwani. This pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along.

@ghost ghost removed the no-recent-activity label Mar 24, 2022
@ghost
Copy link

ghost commented Mar 24, 2022

Staleness reset by PankajBhojwani

@PankajBhojwani
Copy link
Contributor Author

Closes #7156

@jwoo-msft jwoo-msft added this to In progress in Pull Requests Mar 31, 2022
@jwoo-msft jwoo-msft removed this from In progress in Pull Requests Mar 31, 2022
@jwoo-msft jwoo-msft enabled auto-merge (squash) April 5, 2022 17:56
@jwoo-msft jwoo-msft merged commit 646503b into main Apr 6, 2022
@jwoo-msft jwoo-msft deleted the dev/pabhoj/focus_order branch April 6, 2022 19:23
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
…7158)

* only set to not focusable in horizontal alignment

* attempt

* only do horizontal alignment fix

Co-authored-by: Vsevolod <sevkorobot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants