Skip to content

Commit

Permalink
Merge pull request #9 from wayfair-incubator/vpodk-linter
Browse files Browse the repository at this point in the history
Initial linter setup
  • Loading branch information
vpodk authored Nov 9, 2021
2 parents 8e3b53c + f319c11 commit 77a3f78
Show file tree
Hide file tree
Showing 3 changed files with 4,238 additions and 112 deletions.
4 changes: 2 additions & 2 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "./index.css";
/** A CSS class name for the bounding elements. */
const BOUNDER_LINK_CLASS_NAME = "FocusBounder-link";

/**
/**
* A CSS selectors for all focusable elements.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/:not
*/
Expand Down Expand Up @@ -54,7 +54,7 @@ const FocusBounder = ({
// Getting the container element containing bounders.
const container = focusBounder.current.parentNode;
// Getting all focusable elements in the boudered container.
const focusable = container!.querySelectorAll<HTMLAnchorElement>(
const focusable = container?.querySelectorAll<HTMLAnchorElement>(
FOCUSABLE_ELEMENTS_SELECTORS.join(",")
);
// Getting the first or last focusable element, depending on the passed index.
Expand Down
Loading

0 comments on commit 77a3f78

Please sign in to comment.