]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fix for detection of overfloating dropdown menus.
authorMarius Olbertz <marius.olbertz@gmail.com>
Sat, 9 Apr 2016 09:58:07 +0000 (11:58 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Sat, 9 Apr 2016 09:58:07 +0000 (11:58 +0200)
commitdd3d79bc8cfac3bade7815108f02511c88995306
treee170a1b85d41950d6c2af913a71aa348f35e6e6c
parent7a6ed604689635ddda430ae46a100d30c415959b
Fix for detection of overfloating dropdown menus.

Because the selectors were not specific enough, the styles of .opens-right set by the JS in case of an overflowing sub-menu was overwritten by the parent's .open-left styles.
Added visual tests to check for this. The tests include two cases: one for a right aligned dropdown using `.top-bar-right` (which was fixed earlier already) and one that is positioned right because of content (where this fix can be tested).
Also added anchors to the menu's links to check for correct behavior of the links, e.g. when using keyboard.
docs/pages/dropdown-menu.md
scss/components/_dropdown-menu.scss
test/visual/dropdown-menu/right-aligned-dropdown-menu.html [new file with mode: 0644]