foundation-rails 6.4.1.3 → 6.4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/app/views/foundation/rails/styleguide/show.html.erb +8 -8
- data/bower.json +2 -2
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/install_generator.rb +1 -0
- data/lib/generators/foundation/templates/_settings.scss +9 -3
- data/lib/generators/foundation/templates/browserslist +4 -0
- data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/vendor/assets/js/foundation.abide.js +1 -1
- data/vendor/assets/js/foundation.accordionMenu.js +2 -2
- data/vendor/assets/js/foundation.core.js +1 -1
- data/vendor/assets/js/foundation.drilldown.js +3 -3
- data/vendor/assets/js/foundation.dropdown.js +41 -21
- data/vendor/assets/js/foundation.dropdownMenu.js +4 -5
- data/vendor/assets/js/foundation.js +1 -3
- data/vendor/assets/js/foundation.offcanvas.js +11 -9
- data/vendor/assets/js/foundation.orbit.js +1 -1
- data/vendor/assets/js/foundation.reveal.js +2 -3
- data/vendor/assets/js/foundation.slider.js +8 -9
- data/vendor/assets/js/foundation.sticky.js +2 -3
- data/vendor/assets/js/foundation.toggler.js +2 -3
- data/vendor/assets/js/foundation.tooltip.js +2 -3
- data/vendor/assets/js/foundation.util.box.js +12 -13
- data/vendor/assets/js/foundation.util.mediaQuery.js +1 -0
- data/vendor/assets/js/foundation.util.triggers.js +2 -3
- data/vendor/assets/scss/_global.scss +5 -3
- data/vendor/assets/scss/components/_button-group.scss +1 -1
- data/vendor/assets/scss/components/_button.scss +6 -0
- data/vendor/assets/scss/components/_dropdown-menu.scss +2 -0
- data/vendor/assets/scss/components/_menu.scss +15 -1
- data/vendor/assets/scss/components/_off-canvas.scss +106 -43
- data/vendor/assets/scss/forms/_input-group.scss +9 -2
- data/vendor/assets/scss/foundation.scss +2 -1
- data/vendor/assets/scss/grid/_flex-grid.scss +0 -4
- data/vendor/assets/scss/grid/_position.scss +1 -1
- data/vendor/assets/scss/prototype/_prototype.scss +0 -4
- data/vendor/assets/scss/prototype/_rounded.scss +1 -1
- data/vendor/assets/scss/settings/_settings.scss +9 -3
- data/vendor/assets/scss/typography/_base.scss +8 -8
- data/vendor/assets/scss/util/_breakpoint.scss +11 -3
- data/vendor/assets/scss/util/_mixins.scss +3 -6
- data/vendor/assets/scss/xy-grid/_cell.scss +2 -12
- data/vendor/assets/scss/xy-grid/_classes.scss +40 -19
- data/vendor/assets/scss/xy-grid/_collapse.scss +35 -15
- data/vendor/assets/scss/xy-grid/_frame.scss +40 -9
- data/vendor/assets/scss/xy-grid/_grid.scss +4 -25
- data/vendor/assets/scss/xy-grid/_gutters.scss +2 -2
- data/vendor/assets/scss/xy-grid/_layout.scss +1 -1
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +3 -4
- metadata +5 -5
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js +0 -90
- data/vendor/assets/js/foundation.zf.responsiveAccordionTabs.js +0 -262
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35698423f24a50b94fee1bcd69b5cba9095c4667
|
4
|
+
data.tar.gz: '083fc6987434b78efd3c61275db4df1112e9488e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5282769af05a33eadb0057ad704061e5cc5f1ae11b03f579ff6e8bfa0bf80b6708cd637fbaa55ee23e58638f4510164968ad5869b1ab5d19c5f44061f9fb9ebf
|
7
|
+
data.tar.gz: e8d8977fbeb7f339b50907290238139ab55679f1cc664029c0cfaf01aa7745bd50799b78ae7998a99589fe118bd45c4d2fff8ba9e2a7585d0ba7f9d240d9e07b
|
data/README.md
CHANGED
@@ -45,8 +45,8 @@
|
|
45
45
|
</ul>
|
46
46
|
|
47
47
|
|
48
|
-
<div class="
|
49
|
-
<div class="large-4
|
48
|
+
<div class="grid-x grid-padding-x">
|
49
|
+
<div class="cell large-4">
|
50
50
|
<ul class="pricing-table">
|
51
51
|
<li class="title">Freelancer</li>
|
52
52
|
<li class="price">$99.99</li>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
<li class="cta-button"><a class="button" href="#">Buy Now</a></li>
|
58
58
|
</ul>
|
59
59
|
</div>
|
60
|
-
<div class="large-4
|
60
|
+
<div class="cell large-4">
|
61
61
|
<ul class="pricing-table">
|
62
62
|
<li class="title">Startup</li>
|
63
63
|
<li class="price">$199.99</li>
|
@@ -68,7 +68,7 @@
|
|
68
68
|
<li class="cta-button"><a class="button" href="#">Buy Now</a></li>
|
69
69
|
</ul>
|
70
70
|
</div>
|
71
|
-
<div class="large-4
|
71
|
+
<div class="cell large-4">
|
72
72
|
<ul class="pricing-table">
|
73
73
|
<li class="title">Enterprise</li>
|
74
74
|
<li class="price">$999.99</li>
|
@@ -83,14 +83,14 @@
|
|
83
83
|
|
84
84
|
<hr>
|
85
85
|
|
86
|
-
<div class="
|
87
|
-
<div class="large-12
|
86
|
+
<div class="grid-x grid-padding-x">
|
87
|
+
<div class="cell large-12">
|
88
88
|
<h3 class="subheader">Find out more!</h3>
|
89
89
|
</div>
|
90
90
|
</div>
|
91
91
|
|
92
|
-
<div class="
|
93
|
-
<div class="large-12
|
92
|
+
<div class="grid-x grid-padding-x">
|
93
|
+
<div class="cell large-12">
|
94
94
|
<dl class="tabs" data-tab>
|
95
95
|
<dd class="active"><a href="#panel2-1">Overview</a></dd>
|
96
96
|
<dd><a href="#panel2-2">Features</a></dd>
|
data/bower.json
CHANGED
@@ -56,6 +56,7 @@ module Foundation
|
|
56
56
|
def create_app_scss
|
57
57
|
template "foundation_and_overrides.scss", File.join(stylesheets_base_dir, "foundation_and_overrides.scss")
|
58
58
|
template "_settings.scss", File.join(stylesheets_base_dir, "_settings.scss")
|
59
|
+
template "browserslist", File.join(stylesheets_base_dir, "browserslist")
|
59
60
|
end
|
60
61
|
|
61
62
|
private
|
@@ -95,6 +95,7 @@ $global-menu-nested-margin: 1rem;
|
|
95
95
|
$global-text-direction: ltr;
|
96
96
|
$global-flexbox: true;
|
97
97
|
$global-prototype-breakpoints: false;
|
98
|
+
$global-button-cursor: auto;
|
98
99
|
$global-color-pick-contrast-tolerance: 0;
|
99
100
|
$print-transparent-backgrounds: true;
|
100
101
|
|
@@ -477,6 +478,7 @@ $menu-icon-spacing: 0.25rem;
|
|
477
478
|
$menu-item-background-hover: $light-gray;
|
478
479
|
$menu-state-back-compat: true;
|
479
480
|
$menu-centered-back-compat: true;
|
481
|
+
$menu-icons-back-compat: true;
|
480
482
|
|
481
483
|
// 24. Meter
|
482
484
|
// ---------
|
@@ -491,8 +493,12 @@ $meter-fill-bad: $alert-color;
|
|
491
493
|
// 25. Off-canvas
|
492
494
|
// --------------
|
493
495
|
|
494
|
-
$offcanvas-
|
495
|
-
|
496
|
+
$offcanvas-sizes: (
|
497
|
+
small: 250px,
|
498
|
+
);
|
499
|
+
$offcanvas-vertical-sizes: (
|
500
|
+
small: 250px,
|
501
|
+
);
|
496
502
|
$offcanvas-background: $light-gray;
|
497
503
|
$offcanvas-shadow: 0 0 10px rgba($black, 0.7);
|
498
504
|
$offcanvas-inner-shadow-size: 20px;
|
@@ -859,5 +865,5 @@ $grid-margin-gutters: (
|
|
859
865
|
$grid-padding-gutters: $grid-margin-gutters;
|
860
866
|
$grid-container-padding: $grid-padding-gutters;
|
861
867
|
$grid-container-max: $global-width;
|
862
|
-
$block-grid-max: 8;
|
868
|
+
$xy-block-grid-max: 8;
|
863
869
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
///
|
2
|
+
/// Returns whether `$list` contains `$value`.
|
3
|
+
///
|
4
|
+
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-contain
|
5
|
+
///
|
6
|
+
/// @param {List} $list - list to check
|
7
|
+
/// @param {*} $value - value to look for
|
8
|
+
///
|
9
|
+
/// @example
|
10
|
+
/// sl-contain(a b c, a)
|
11
|
+
/// // true
|
12
|
+
///
|
13
|
+
/// @example
|
14
|
+
/// sl-contain(a b c, z)
|
15
|
+
/// // false
|
16
|
+
///
|
17
|
+
/// @return {Bool}
|
18
|
+
///
|
19
|
+
|
20
|
+
@function sl-contain($list, $value) {
|
21
|
+
@return not not index($list, $value);
|
22
|
+
}
|
23
|
+
|
24
|
+
///
|
25
|
+
/// @requires sl-contain
|
26
|
+
/// @alias sl-contain
|
27
|
+
///
|
28
|
+
|
29
|
+
@function sl-include($list, $value) {
|
30
|
+
@return sl-contain($list, $value);
|
31
|
+
}
|
@@ -155,7 +155,7 @@ var Abide = function (_Plugin) {
|
|
155
155
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
156
156
|
|
157
157
|
this.$element = element;
|
158
|
-
this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Abide.defaults, this.$element.data(), options);
|
158
|
+
this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend(true, {}, Abide.defaults, this.$element.data(), options);
|
159
159
|
|
160
160
|
this.className = 'Abide'; // ie9 back compat
|
161
161
|
this._init();
|
@@ -174,8 +174,6 @@ var AccordionMenu = function (_Plugin) {
|
|
174
174
|
this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, AccordionMenu.defaults, this.$element.data(), options);
|
175
175
|
this.className = 'AccordionMenu'; // ie9 back compat
|
176
176
|
|
177
|
-
__WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'accordion');
|
178
|
-
|
179
177
|
this._init();
|
180
178
|
|
181
179
|
__WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('AccordionMenu', {
|
@@ -197,6 +195,8 @@ var AccordionMenu = function (_Plugin) {
|
|
197
195
|
}, {
|
198
196
|
key: '_init',
|
199
197
|
value: function _init() {
|
198
|
+
__WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'accordion');
|
199
|
+
|
200
200
|
var _this = this;
|
201
201
|
|
202
202
|
this.$element.find('[data-submenu]').not('.is-active').slideUp(0); //.find('a').css('padding-left', '1rem');
|
@@ -183,7 +183,7 @@ window.Foundation = __WEBPACK_IMPORTED_MODULE_1__foundation_core__["a" /* Founda
|
|
183
183
|
|
184
184
|
|
185
185
|
|
186
|
-
var FOUNDATION_VERSION = '6.4.
|
186
|
+
var FOUNDATION_VERSION = '6.4.3';
|
187
187
|
|
188
188
|
// Global Foundation object
|
189
189
|
// This is attached to the window, or used as a module for AMD/Browserify
|
@@ -177,8 +177,6 @@ var Drilldown = function (_Plugin) {
|
|
177
177
|
this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, Drilldown.defaults, this.$element.data(), options);
|
178
178
|
this.className = 'Drilldown'; // ie9 back compat
|
179
179
|
|
180
|
-
__WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'drilldown');
|
181
|
-
|
182
180
|
this._init();
|
183
181
|
|
184
182
|
__WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('Drilldown', {
|
@@ -202,6 +200,8 @@ var Drilldown = function (_Plugin) {
|
|
202
200
|
}, {
|
203
201
|
key: '_init',
|
204
202
|
value: function _init() {
|
203
|
+
__WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'drilldown');
|
204
|
+
|
205
205
|
if (this.options.autoApplyClass) {
|
206
206
|
this.$element.addClass('drilldown');
|
207
207
|
}
|
@@ -240,7 +240,7 @@ var Drilldown = function (_Plugin) {
|
|
240
240
|
var $link = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this);
|
241
241
|
var $sub = $link.parent();
|
242
242
|
if (_this.options.parentLink) {
|
243
|
-
$link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="
|
243
|
+
$link.clone().prependTo($sub.children('[data-submenu]')).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menuitem"></li>');
|
244
244
|
}
|
245
245
|
$link.data('savedHref', $link.attr('href')).removeAttr('href').attr('tabindex', 0);
|
246
246
|
$link.children('[data-submenu]').attr({
|
@@ -461,16 +461,17 @@ var Dropdown = function (_Positionable) {
|
|
461
461
|
value: function _init() {
|
462
462
|
var $id = this.$element.attr('id');
|
463
463
|
|
464
|
-
this.$
|
465
|
-
this.$
|
464
|
+
this.$anchors = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]').length ? __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-toggle="' + $id + '"]') : __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-open="' + $id + '"]');
|
465
|
+
this.$anchors.attr({
|
466
466
|
'aria-controls': $id,
|
467
467
|
'data-is-focus': false,
|
468
468
|
'data-yeti-box': $id,
|
469
469
|
'aria-haspopup': true,
|
470
470
|
'aria-expanded': false
|
471
|
-
|
472
471
|
});
|
473
472
|
|
473
|
+
this._setCurrentAnchor(this.$anchors.first());
|
474
|
+
|
474
475
|
if (this.options.parentClass) {
|
475
476
|
this.$parent = this.$element.parents('.' + this.options.parentClass);
|
476
477
|
} else {
|
@@ -481,7 +482,7 @@ var Dropdown = function (_Positionable) {
|
|
481
482
|
'aria-hidden': 'true',
|
482
483
|
'data-yeti-box': $id,
|
483
484
|
'data-resize': $id,
|
484
|
-
'aria-labelledby': this.$
|
485
|
+
'aria-labelledby': this.$currentAnchor.id || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__foundation_util_core__["GetYoDigits"])(6, 'dd-anchor')
|
485
486
|
});
|
486
487
|
_get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_init', this).call(this);
|
487
488
|
this._events();
|
@@ -501,7 +502,7 @@ var Dropdown = function (_Positionable) {
|
|
501
502
|
key: '_getDefaultAlignment',
|
502
503
|
value: function _getDefaultAlignment() {
|
503
504
|
// handle legacy float approach
|
504
|
-
var horizontalPosition = /float-(\S+)/.exec(this.$
|
505
|
+
var horizontalPosition = /float-(\S+)/.exec(this.$currentAnchor.className);
|
505
506
|
if (horizontalPosition) {
|
506
507
|
return horizontalPosition[1];
|
507
508
|
}
|
@@ -519,7 +520,21 @@ var Dropdown = function (_Positionable) {
|
|
519
520
|
}, {
|
520
521
|
key: '_setPosition',
|
521
522
|
value: function _setPosition() {
|
522
|
-
_get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_setPosition', this).call(this, this.$
|
523
|
+
_get(Dropdown.prototype.__proto__ || Object.getPrototypeOf(Dropdown.prototype), '_setPosition', this).call(this, this.$currentAnchor, this.$element, this.$parent);
|
524
|
+
}
|
525
|
+
|
526
|
+
/**
|
527
|
+
* Make it a current anchor.
|
528
|
+
* Current anchor as the reference for the position of Dropdown panes.
|
529
|
+
* @param {HTML} el - DOM element of the anchor.
|
530
|
+
* @function
|
531
|
+
* @private
|
532
|
+
*/
|
533
|
+
|
534
|
+
}, {
|
535
|
+
key: '_setCurrentAnchor',
|
536
|
+
value: function _setCurrentAnchor(el) {
|
537
|
+
this.$currentAnchor = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(el);
|
523
538
|
}
|
524
539
|
|
525
540
|
/**
|
@@ -539,21 +554,27 @@ var Dropdown = function (_Positionable) {
|
|
539
554
|
'resizeme.zf.trigger': this._setPosition.bind(this)
|
540
555
|
});
|
541
556
|
|
557
|
+
this.$anchors.off('click.zf.trigger').on('click.zf.trigger', function () {
|
558
|
+
_this._setCurrentAnchor(this);
|
559
|
+
});
|
560
|
+
|
542
561
|
if (this.options.hover) {
|
543
|
-
this.$
|
562
|
+
this.$anchors.off('mouseenter.zf.dropdown mouseleave.zf.dropdown').on('mouseenter.zf.dropdown', function () {
|
563
|
+
_this._setCurrentAnchor(this);
|
564
|
+
|
544
565
|
var bodyData = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('body').data();
|
545
566
|
if (typeof bodyData.whatinput === 'undefined' || bodyData.whatinput === 'mouse') {
|
546
567
|
clearTimeout(_this.timeout);
|
547
568
|
_this.timeout = setTimeout(function () {
|
548
569
|
_this.open();
|
549
|
-
_this.$
|
570
|
+
_this.$anchors.data('hover', true);
|
550
571
|
}, _this.options.hoverDelay);
|
551
572
|
}
|
552
573
|
}).on('mouseleave.zf.dropdown', function () {
|
553
574
|
clearTimeout(_this.timeout);
|
554
575
|
_this.timeout = setTimeout(function () {
|
555
576
|
_this.close();
|
556
|
-
_this.$
|
577
|
+
_this.$anchors.data('hover', false);
|
557
578
|
}, _this.options.hoverDelay);
|
558
579
|
});
|
559
580
|
if (this.options.hoverPane) {
|
@@ -563,19 +584,19 @@ var Dropdown = function (_Positionable) {
|
|
563
584
|
clearTimeout(_this.timeout);
|
564
585
|
_this.timeout = setTimeout(function () {
|
565
586
|
_this.close();
|
566
|
-
_this.$
|
587
|
+
_this.$anchors.data('hover', false);
|
567
588
|
}, _this.options.hoverDelay);
|
568
589
|
});
|
569
590
|
}
|
570
591
|
}
|
571
|
-
this.$
|
592
|
+
this.$anchors.add(this.$element).on('keydown.zf.dropdown', function (e) {
|
572
593
|
|
573
594
|
var $target = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this),
|
574
595
|
visibleFocusableElements = __WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].findFocusable(_this.$element);
|
575
596
|
|
576
597
|
__WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].handleKey(e, 'Dropdown', {
|
577
598
|
open: function () {
|
578
|
-
if ($target.is(_this.$
|
599
|
+
if ($target.is(_this.$anchors)) {
|
579
600
|
_this.open();
|
580
601
|
_this.$element.attr('tabindex', -1).focus();
|
581
602
|
e.preventDefault();
|
@@ -583,7 +604,7 @@ var Dropdown = function (_Positionable) {
|
|
583
604
|
},
|
584
605
|
close: function () {
|
585
606
|
_this.close();
|
586
|
-
_this.$
|
607
|
+
_this.$anchors.focus();
|
587
608
|
}
|
588
609
|
});
|
589
610
|
});
|
@@ -601,7 +622,7 @@ var Dropdown = function (_Positionable) {
|
|
601
622
|
var $body = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(document.body).not(this.$element),
|
602
623
|
_this = this;
|
603
624
|
$body.off('click.zf.dropdown').on('click.zf.dropdown', function (e) {
|
604
|
-
if (_this.$
|
625
|
+
if (_this.$anchors.is(e.target) || _this.$anchors.find(e.target).length) {
|
605
626
|
return;
|
606
627
|
}
|
607
628
|
if (_this.$element.find(e.target).length) {
|
@@ -628,7 +649,7 @@ var Dropdown = function (_Positionable) {
|
|
628
649
|
* @event Dropdown#closeme
|
629
650
|
*/
|
630
651
|
this.$element.trigger('closeme.zf.dropdown', this.$element.attr('id'));
|
631
|
-
this.$
|
652
|
+
this.$anchors.addClass('hover').attr({ 'aria-expanded': true });
|
632
653
|
// this.$element/*.show()*/;
|
633
654
|
|
634
655
|
this.$element.addClass('is-opening');
|
@@ -671,7 +692,7 @@ var Dropdown = function (_Positionable) {
|
|
671
692
|
}
|
672
693
|
this.$element.removeClass('is-open').attr({ 'aria-hidden': true });
|
673
694
|
|
674
|
-
this.$
|
695
|
+
this.$anchors.removeClass('hover').attr('aria-expanded', false);
|
675
696
|
|
676
697
|
/**
|
677
698
|
* Fires once the dropdown is no longer visible.
|
@@ -693,7 +714,7 @@ var Dropdown = function (_Positionable) {
|
|
693
714
|
key: 'toggle',
|
694
715
|
value: function toggle() {
|
695
716
|
if (this.$element.hasClass('is-open')) {
|
696
|
-
if (this.$
|
717
|
+
if (this.$anchors.data('hover')) return;
|
697
718
|
this.close();
|
698
719
|
} else {
|
699
720
|
this.open();
|
@@ -709,7 +730,7 @@ var Dropdown = function (_Positionable) {
|
|
709
730
|
key: '_destroy',
|
710
731
|
value: function _destroy() {
|
711
732
|
this.$element.off('.zf.trigger').hide();
|
712
|
-
this.$
|
733
|
+
this.$anchors.off('.zf.dropdown');
|
713
734
|
__WEBPACK_IMPORTED_MODULE_0_jquery___default()(document.body).off('click.zf.dropdown');
|
714
735
|
}
|
715
736
|
}]);
|
@@ -970,10 +991,9 @@ Triggers.Listeners.Global = {
|
|
970
991
|
_this.triggerHandler('close.zf.trigger', [_this]);
|
971
992
|
});
|
972
993
|
}
|
973
|
-
};
|
974
994
|
|
975
|
-
// Global, parses whole document.
|
976
|
-
Triggers.Initializers.addClosemeListener = function (pluginName) {
|
995
|
+
// Global, parses whole document.
|
996
|
+
};Triggers.Initializers.addClosemeListener = function (pluginName) {
|
977
997
|
var yetiBoxes = __WEBPACK_IMPORTED_MODULE_0_jquery___default()('[data-yeti-box]'),
|
978
998
|
plugNames = ['dropdown', 'tooltip', 'reveal'];
|
979
999
|
|
@@ -178,7 +178,6 @@ var DropdownMenu = function (_Plugin) {
|
|
178
178
|
this.options = __WEBPACK_IMPORTED_MODULE_0_jquery___default.a.extend({}, DropdownMenu.defaults, this.$element.data(), options);
|
179
179
|
this.className = 'DropdownMenu'; // ie9 back compat
|
180
180
|
|
181
|
-
__WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'dropdown');
|
182
181
|
this._init();
|
183
182
|
|
184
183
|
__WEBPACK_IMPORTED_MODULE_1__foundation_util_keyboard__["Keyboard"].register('DropdownMenu', {
|
@@ -201,6 +200,8 @@ var DropdownMenu = function (_Plugin) {
|
|
201
200
|
}, {
|
202
201
|
key: '_init',
|
203
202
|
value: function _init() {
|
203
|
+
__WEBPACK_IMPORTED_MODULE_2__foundation_util_nest__["Nest"].Feather(this.$element, 'dropdown');
|
204
|
+
|
204
205
|
var subs = this.$element.find('li.is-dropdown-submenu-parent');
|
205
206
|
this.$element.children('.is-dropdown-submenu-parent').children('.is-dropdown-submenu').addClass('first-sub');
|
206
207
|
|
@@ -332,10 +333,8 @@ var DropdownMenu = function (_Plugin) {
|
|
332
333
|
});
|
333
334
|
|
334
335
|
var nextSibling = function () {
|
335
|
-
|
336
|
-
|
337
|
-
e.preventDefault();
|
338
|
-
}
|
336
|
+
$nextElement.children('a:first').focus();
|
337
|
+
e.preventDefault();
|
339
338
|
},
|
340
339
|
prevSibling = function () {
|
341
340
|
$prevElement.children('a:first').focus();
|