Skip to content

Commit

Permalink
change tree-focus board
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlmightyCrumb committed Jan 13, 2025
1 parent 930776a commit 7d85fa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/components/src/tree/boards/tree-focus.board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export default createBoard({
focusControl={focusControl}
/>
<button id="clear" onClick={() => setFocus(undefined)}>
clear selection
clear focus
</button>
<button id="select" onClick={() => setFocus('5')}>
select 5
<button id="focus" onClick={() => setFocus('5')}>
focus 5
</button>
</div>
);
Expand All @@ -74,7 +74,7 @@ export default createBoard({
expectElementStyle('[data-id="2"]', FOCUSED_STYLE), // blue (focused)
clickAction('#clear'),
expectElementStyle('[data-id="2"]', DEFAULT_STYLE), // not focused
clickAction('#select'),
clickAction('#focus'),
focusAction('#LIST'),
keyDownAction('[data-id="5"]', KeyCodes.ArrowDown, { which: 40 }),
expectElementStyle('[data-id="6"]', FOCUSED_STYLE), // blue (focused)
Expand Down

0 comments on commit 7d85fa5

Please sign in to comment.