Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
knuton committed Mar 16, 2024
1 parent 42321ae commit da52c3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,14 @@ describe("focus-shift spec", () => {
{ eventType: "keydown", selector: "#button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#summary-1", options: keyevent({ key: "ArrowUp" }) },
{ eventType: "click", selector: "#summary-1" },
{ eventType: "focus", selector: "#summary-1" },
{ eventType: "keydown", selector: "#group-button-1", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#group-button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#summary-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#summary-2", options: keyevent({ key: "ArrowUp" }) },
{ eventType: "click", selector: "#summary-2" },
{ eventType: "focus", selector: "#summary-2" },
{ eventType: "keydown", selector: "#subgroup-button-1", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#subgroup-button-2", options: keyevent({ key: "ArrowDown" }) },
{ eventType: "keydown", selector: "#button-2", options: keyevent({ key: "ArrowDown" }) }
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ function getFocusableElements(container) {
* - it has negative tabindex,
* - it has been marked with `data-focus-skip`,
* - it is a descendant of an element marked with `data-focus-skip`,
* - it is a descendant of a closed `details` element,
* - it is `disabled`,
* - it is `inert`.
*
Expand Down

0 comments on commit da52c3d

Please sign in to comment.