Skip to content

Commit 646503b

Browse files
Don't skip over action buttons when in vertical alignment (#7158)
* only set to not focusable in horizontal alignment * attempt * only do horizontal alignment fix Co-authored-by: Vsevolod <sevkorobot@gmail.com>
1 parent ec0388b commit 646503b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/nodejs/adaptivecards/src/card-elements.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5668,8 +5668,8 @@ class ActionCollection {
56685668
let afterSelectedAction = false;
56695669

56705670
for (const renderedAction of this._renderedActions) {
5671-
// Remove actions after selected action from tabOrder, to skip focus directly to expanded card
5672-
if (afterSelectedAction) {
5671+
// Remove actions after selected action from tabOrder if the actions are oriented horizontally, to skip focus directly to expanded card
5672+
if (this._owner.hostConfig.actions.actionsOrientation == Enums.Orientation.Horizontal && afterSelectedAction) {
56735673
renderedAction.isFocusable = false;
56745674
}
56755675

0 commit comments

Comments
 (0)