-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add layout-table-matches method (#2400)
* feat: add layout-table-matches method * chore: add comment * chore: expose layoutTableMatches
- Loading branch information
1 parent
f2cccf5
commit d7ba70f
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { isDataTable } from '../commons/table'; | ||
import { isFocusable } from '../commons/dom'; | ||
|
||
// TODO: es-modules add tests. No way to access this on the `axe` object | ||
function dataTableMatches(node) { | ||
return !isDataTable(node) && !isFocusable(node); | ||
} | ||
|
||
export default dataTableMatches; |