Skip to content

feat(Mover): Connected Movers.#395

Open
mshoho wants to merge 2 commits into
masterfrom
connected-movers
Open

feat(Mover): Connected Movers.#395
mshoho wants to merge 2 commits into
masterfrom
connected-movers

Conversation

@mshoho

@mshoho mshoho commented Jul 25, 2024

Copy link
Copy Markdown
Member

The ability to connect nested Movers via DOM hierarchy so that the parent Movers can continue handling the key press when the child Mover couldn't find new focus target.

@mshoho
mshoho requested a review from ling1726 July 25, 2024 13:25
Comment thread tests/Mover.test.tsx
groupper: {},
mover: {
direction: MoverDirections.Vertical,
connected: MoverConnections.Parent,

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.

why are Child and Parent relationships both needed for connected movers? Is there a scenario where you can have a parent mover with Child and only a subset of movers will use Parent?

Comment thread tests/Mover.test.tsx
</div>

<div
tabIndex={0}

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.

what happens when a connected mover is not focusable?

Comment thread tests/Mover.test.tsx
},
})}
>
<button>Button1</button>

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.

Please update button names to be a bit more specific to their level of nesting

i.e. Button1L3

Comment thread tests/Mover.test.tsx
<div
{...getTabsterAttribute({
mover: {
direction: MoverDirections.Horizontal,

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.

what happens when parent and child movers share the same direction?

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