1.0.0-beta.4 - preview 4
Pre-release
Pre-release
·
600 commits
to master
since this release
Changes compared to 1.0.0-beta-3
- removing
get/parentsfrom public API (ally.get.parents) - renaming
ally.when.visibletoally.when.visibleAreaas the docs say
Changes compared to v0.0.7
- moving dependencies from bower to npm
- moving source from AMD to ES6 Module Syntax
- adding ES6 build infrastructure - issue #1
- adding unit tests - issue #2
- adding
query/first-tabbable(replacingfocus/first) to find the first keyboard focusable element in a sub-tree - unifying API of all functions, see the API docs
- adding
strategy: 'strict'option toquery/focusableto find elements by filters unavailable toquerySelectorAll()- i.e. Shadow DOM without the "Shadow Piercing Descendant Combinator", scrollable containers,-webkit-user-modify: read-write- issue #17, issue #21 - refactoring
is/focusableto also identify "edge-cases" - issue #17, issue #20, issue #21 - adding
is/focus-relevantto identify technically focusable elements (refactored fromis/focusable) - adding
is/only-tabbableto identify elements that cannot be focused by script, but by keyboard - removing "dimension check" from
is/visible- issue #14 query/focusableno longer considers<html>and<body>focusable - issue #31- adding
element/disabled(refactored fromfocus/disabled) - issue #33 - adding
when/keyto observe simple keyboard input - issue #47 - adding
get/insignificant-branchesto find branches not relevant to a given set of elements - issue #32 - adding
maintain/hiddento hide everything in the DOM that is not relevant to a given set of elements - issue #46
Breaking Changes
src/was ES5 and AMD, it is now ES6 - AMD components are now available atdist/amd/- dropping
focus/firstin favor ofquery/first-tabbable dom/is-valid-areanow returnsfalsefor elements that are not<area>dom/is-valid-tabindexnow returnsfalsefor elements withouttabindexattribute- see the API docs for the new function signatures
- renaming files in
src:dom/active-elements.jstoget/active-elements.jsdom/focus-target.jstoget/focus-target.jsdom/is-disabled.jstois/disabled.jsdom/is-focusable.jstois/focusable.jsdom/is-shadowed.jstois/shadowed.jsdom/is-tabbable.jstois/tabbable.jsdom/is-valid-area.jstois/valid-area.jsdom/is-valid-tabindex.jstois/valid-tabindex.jsdom/is-visible.jstois/visible.jsdom/node-array.jstoutil/node-array.jsdom/path.jstoget/parents.jsdom/query-focusable.jstoquery/focusable.jsdom/query-tabbable.jstoquery/tabbable.jsdom/query-tabsequence.jstoquery/tabsequence.jsdom/shadow-host-ancestors.jstoget/shadow-host-parents.jsdom/when-visible.jstowhen/visible-area.jsdom/shadow-host.jstoget/shadow-host.jsdom/sort-tabindex.jstoutil/sort-elements-by-tabindex.jsdom/visible-quotient.jstoutil/visible-area.jsevent/interaction-type-listener.jstoobserve/interaction-type.jsfocus/source.jstostyle/focus-source.jsfocus/when-visible.jstowhen/focusable.jsfocus/within.jstostyle/focus-within.jsfocus/disable-focustomaintain/disabledfocus/traptomaintain/focus-trapped