]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Enhanced keyboard navigation for Offcanvas. 9011/head
authorMarius Olbertz <marius.olbertz@gmail.com>
Thu, 7 Jul 2016 15:42:59 +0000 (17:42 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Thu, 7 Jul 2016 15:42:59 +0000 (17:42 +0200)
commite18a461298bf0cb65c91c0faf278ab21e63f3641
tree81d3f5f1992eda5d6e18a577076b2341c4d7ca61
parent7f96a306443bf35dc4ac7aec0b97bf474ab90cd9
Enhanced keyboard navigation for Offcanvas.

On open not the first element within the side panel, but the whole panel should receive focus.
If the first interactive element is focussed the user might miss some content above it, e.g. the panel heading.
Also added usage of handleKey() to the component to close the panel.
Moved the panel focussing outside of the transitionEnd listener because this was never called and it also works outside...
js/foundation.offcanvas.js