]>
git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/log
Nicolas Coden [Fri, 23 Mar 2018 09:01:56 +0000 (10:01 +0100)]
fix: refactor the `onLoad` uility to allow to unbind the created listenner
Nicolas Coden [Sun, 18 Mar 2018 20:27:26 +0000 (21:27 +0100)]
fix: fix various component listeners on page load when the page is already loaded
Prevent bugs in Accordion, Magellan, OffCanvas, Reveal, Sticky, Tabs and trigger utilities when the component is dynamically added because the window `load` event they rely on would never be triggered.
Note: In addition to the bug fix, the following behaviors are changed:
* Accordion now smoothly scroll to the opened pane when the hash is changed
Nicolas Coden [Sun, 18 Mar 2018 20:16:11 +0000 (21:16 +0100)]
feat: add `onLoad` utility to wait for page load even after it is already loaded
Nicolas Coden [Fri, 16 Mar 2018 21:37:49 +0000 (22:37 +0100)]
Merge pull request #10968 from alliclemens/alliclemens-dropdown-unit-tests
Unit Tests added for dropdown
Nicolas Coden [Thu, 15 Mar 2018 21:14:41 +0000 (22:14 +0100)]
Merge pull request #11036 from colin-marshall/chore/update-eslint-to-v4
chore: update eslint/gulp-eslint to v4
Nicolas Coden [Tue, 13 Mar 2018 20:33:11 +0000 (21:33 +0100)]
Merge pull request #11002 from DanielRuf/fix/foundation-everything-xy-grid-10742
fix: add the xy-grid parameter to foundation-everything
Nicolas Coden [Tue, 13 Mar 2018 20:21:18 +0000 (21:21 +0100)]
Merge pull request #11041 from DanielRuf/fix/reveal-destroy-remove-open-classes-10626
fix: remove the open classes if no visible reveal exists after destro…
Daniel Ruf [Mon, 12 Mar 2018 22:42:30 +0000 (23:42 +0100)]
fix: fallback for xy-check
Daniel Ruf [Mon, 12 Mar 2018 07:41:30 +0000 (08:41 +0100)]
fix: make removeRevealOpenClasses and addRevealOpenClasses available for the whole component
Daniel Ruf [Mon, 12 Mar 2018 07:20:55 +0000 (08:20 +0100)]
fix: use right reference to the local context
Daniel Ruf [Mon, 12 Mar 2018 06:59:50 +0000 (07:59 +0100)]
fix: properly call removeRevealOpenClasses, add comments, remove a few empty lines
Daniel Ruf [Sun, 11 Mar 2018 22:35:53 +0000 (23:35 +0100)]
fix: remove the open classes if no visible reveal exists after destroying one
Nicolas Coden [Sat, 10 Mar 2018 21:11:21 +0000 (22:11 +0100)]
Merge pull request #11025 from jellisii/accordionPlusMinus
Allow for setting of custom plus/minus indicators for Accordion.
Colin Marshall [Sat, 10 Mar 2018 21:07:11 +0000 (14:07 -0700)]
Update gulp-eslint to v4
Colin Marshall [Sat, 10 Mar 2018 20:59:53 +0000 (13:59 -0700)]
Removed duplicate/misplaced ecmaVersion setting
Nicolas Coden [Fri, 9 Mar 2018 21:57:42 +0000 (22:57 +0100)]
Revert "Add scroll to browser test display to allow viewing of all test results"
This reverts commit
2d56de0b675b41d2205d051651989ea98b672dfa .
See: https://github.com/zurb/foundation-sites/pull/10968#issuecomment-
371957423
Nicolas Coden [Thu, 8 Mar 2018 21:17:34 +0000 (22:17 +0100)]
Merge branch 'develop' into jellisii/accordionPlusMinus
Nicolas Coden [Thu, 8 Mar 2018 21:16:27 +0000 (22:16 +0100)]
Merge pull request #10988 from DanielRuf/fix/magellan-update-active
fix: fire updateActive after calcPoints
Nicolas Coden [Thu, 8 Mar 2018 21:10:07 +0000 (22:10 +0100)]
docs: improve Accordion icon content settings documentation
See https://github.com/zurb/foundation-sites/pull/11025/files#r173287607
Nicolas Coden [Thu, 8 Mar 2018 21:09:26 +0000 (22:09 +0100)]
style: rename Accordion icon content settings
See https://github.com/zurb/foundation-sites/pull/11025/files#r173285018
Nicolas Coden [Thu, 8 Mar 2018 21:02:45 +0000 (22:02 +0100)]
feat: add Pagination option to customize arrow icons
Similar to https://github.com/zurb/foundation-sites/pull/11025
> It make me think that we should have these options for every component where it could be useful to customize them, for lrt/rtl support and design customization (with a custom webfont for example).
J. Eric Ellis [Thu, 8 Mar 2018 13:00:43 +0000 (08:00 -0500)]
Allow for setting of custom plus/minus indicators.
Nicolas Coden [Tue, 6 Mar 2018 22:58:46 +0000 (23:58 +0100)]
tests: various fix in Dropdown tests
Changes:
* split tests about `open()` or mouse events
* tests triggered events instead of method calling for mouse events
* add missing `done()` when test is asynchronous
* rely on options passed to plugin instead of in the HTML
* test the Id of the focused element instead of the whole HTML (it can change)
* improve various tests names
Nicolas Coden [Tue, 6 Mar 2018 22:54:31 +0000 (23:54 +0100)]
clean: remove console.log in Dropdown tests
Nicolas Coden [Tue, 6 Mar 2018 20:45:08 +0000 (21:45 +0100)]
Merge branch 'develop' into alliclemens/alliclemens-dropdown-unit-tests
Nicolas Coden [Tue, 6 Mar 2018 20:40:18 +0000 (21:40 +0100)]
Merge pull request #11011 from ncoden/fix/hashchange-event-compatibility-10771
fix: use `hashchange` event instead of `popstate` for IE/Edge compatibility
Nicolas Coden [Tue, 6 Mar 2018 20:39:34 +0000 (21:39 +0100)]
Merge pull request #11018 from DanielRuf/fix/menu-remove-unused-hover-variable-10758
fix: remove the unused menu-item-background-hover variable
Nicolas Coden [Mon, 5 Mar 2018 22:59:32 +0000 (23:59 +0100)]
Merge pull request #10965 from DanielRuf/fix/develop-dropdown-eventnames
fix: camelCase all events
Nicolas Coden [Mon, 5 Mar 2018 22:56:14 +0000 (23:56 +0100)]
Merge pull request #11001 from DanielRuf/fix/tabs-remove-unused-variable-expand-max-8484
fix: remove the unused tab-expand-max variable
Daniel Ruf [Mon, 5 Mar 2018 22:05:21 +0000 (23:05 +0100)]
fix: remove the unused menu-item-background-hover variable
Nicolas Coden [Sun, 4 Mar 2018 22:59:58 +0000 (23:59 +0100)]
Merge pull request #11003 from DanielRuf/tests/run-tests-all-node-versions
tests: run tests on latest stable and LTS releases of Node.js
Nicolas Coden [Sun, 4 Mar 2018 22:51:10 +0000 (23:51 +0100)]
clean: remove comment about a resolved bug in Magellan tests
https://github.com/zurb/foundation-sites/pull/10906
Nicolas Coden [Sun, 4 Mar 2018 22:50:05 +0000 (23:50 +0100)]
tests: revert to systematic test of magellan graceful failure
Partially revert
e89d85cbf4328c8d925a64bde7e2525c88841d5a
Test Magellan.scrollToLoc systematically as it should _never_ throw an error when target does not exists.
Daniel Ruf [Sun, 4 Mar 2018 16:41:32 +0000 (17:41 +0100)]
fix: copy the sourcemap files (#10998)
Nicolas Coden [Sun, 4 Mar 2018 16:29:57 +0000 (17:29 +0100)]
fix: use `hashchange` event instead of `popstate` for IE/Edge compatibility
See: https://github.com/zurb/foundation-sites/pull/11006#issuecomment-
370193395
Previous PR: https://github.com/zurb/foundation-sites/pull/11006 (@DanielRuf)
Closes https://github.com/zurb/foundation-sites/issues/10771 (@hubert-ried)
Nicolas Coden [Sat, 3 Mar 2018 17:21:11 +0000 (18:21 +0100)]
Merge pull request #10927 from ncoden/fix/xy-grid-responsive-modifiers-reset-10891
fix: fix XY Grid responsive widths with shrink/auto #10891
Daniel Ruf [Fri, 2 Mar 2018 23:36:27 +0000 (00:36 +0100)]
fix: move xy-grid check under flex-grid check
Daniel Ruf [Fri, 2 Mar 2018 23:26:10 +0000 (00:26 +0100)]
tests: use the Boron and Carbon LTS releases
Daniel Ruf [Fri, 2 Mar 2018 23:21:24 +0000 (00:21 +0100)]
fix: set the global xy-grid variable based on the local y-grid parameter
Daniel Ruf [Fri, 2 Mar 2018 23:12:10 +0000 (00:12 +0100)]
tests: run tests on latest stable and LTS releases of Node.js
Daniel Ruf [Fri, 2 Mar 2018 20:15:50 +0000 (21:15 +0100)]
tests: make sure that the Magellan tests are properly running
Daniel Ruf [Fri, 2 Mar 2018 19:55:53 +0000 (20:55 +0100)]
tests: only test Node.js 6 and higher
Daniel Ruf [Fri, 2 Mar 2018 19:46:15 +0000 (20:46 +0100)]
tests: run tests on all Node.js versions
Daniel Ruf [Fri, 2 Mar 2018 19:25:29 +0000 (20:25 +0100)]
fix: add the xy-grid parameter to foundation-everything
Daniel Ruf [Fri, 2 Mar 2018 19:07:00 +0000 (20:07 +0100)]
fix: remove the unused tab-expand-max variable
Daniel Ruf [Wed, 28 Feb 2018 22:13:50 +0000 (23:13 +0100)]
do less calculations to improve the performance
Nicolas Coden [Tue, 27 Feb 2018 20:40:29 +0000 (21:40 +0100)]
Merge pull request #10990 from DanielRuf/fix/get-fn-name-unit-test
fix: do not test for inferred names in getFnName unit test
Daniel Ruf [Mon, 26 Feb 2018 23:10:43 +0000 (00:10 +0100)]
Merge branch 'develop' into fix/develop-dropdown-eventnames
Daniel Ruf [Mon, 26 Feb 2018 23:10:04 +0000 (00:10 +0100)]
remove spaces
Daniel Ruf [Mon, 26 Feb 2018 23:06:57 +0000 (00:06 +0100)]
offcanvas: integrate changes from the develop branch, camelcase closed event
Daniel Ruf [Mon, 26 Feb 2018 23:00:37 +0000 (00:00 +0100)]
properly camelcase offCanvas and smoothScroll events
Nicolas Coden [Mon, 26 Feb 2018 22:46:24 +0000 (23:46 +0100)]
Merge pull request #10960 from jellisii/develop
Added 'disabled' styling to switches.
Daniel Ruf [Mon, 26 Feb 2018 22:15:56 +0000 (23:15 +0100)]
add info about inferred names of anonymous functions
Daniel Ruf [Mon, 26 Feb 2018 22:12:12 +0000 (23:12 +0100)]
remove unused code
Daniel Ruf [Mon, 26 Feb 2018 22:08:06 +0000 (23:08 +0100)]
fix small typo
Daniel Ruf [Mon, 26 Feb 2018 21:53:38 +0000 (22:53 +0100)]
fix: do not test for inferred names in getFnName unit test
Daniel Ruf [Mon, 26 Feb 2018 21:05:48 +0000 (22:05 +0100)]
fire updateActive after calcPoints
Nicolas Coden [Mon, 26 Feb 2018 07:15:01 +0000 (08:15 +0100)]
Merge pull request #10906 from zurb/coreysyms-patch-magellan-constant-updates
fix: fire Magellan update event only where there is a change
Nicolas Coden [Sun, 25 Feb 2018 18:06:32 +0000 (19:06 +0100)]
Merge pull request #10984 from ncoden/chore/update-packages-cve
chore: resolve dependencies CVE
Nicolas Coden [Sun, 25 Feb 2018 17:43:03 +0000 (18:43 +0100)]
chore: update `foundation-docs`
Nicolas Coden [Sun, 25 Feb 2018 17:42:41 +0000 (18:42 +0100)]
chore: update `supercollider` to 1.4.4
Nicolas Coden [Fri, 23 Feb 2018 22:47:47 +0000 (23:47 +0100)]
chore: update dependencies with CVE
See:
* https://github.com/zurb/supercollider/pull/16
* https://github.com/zurb/panini/pull/158
* https://github.com/zurb/foundation-docs/pull/27
Update packages:
* `handlebars`: `2.0.0`-> `4.0.1` (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8861)
* `uglify-js`: `2.3.6` -> `2.8.29` (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8857, https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8858)
* `marked`: `0.3.6` -> `0.3.14` (https://nvd.nist.gov/vuln/detail/CVE-2017-
1000427 )
Nicolas Coden [Wed, 21 Feb 2018 23:07:53 +0000 (00:07 +0100)]
Merge pull request #10944 from DanielRuf/patch/unit-tests-headless-chrome
tests: migrate to mocha-headless-chrome
Nicolas Coden [Wed, 21 Feb 2018 23:02:32 +0000 (00:02 +0100)]
Merge pull request #10967 from DanielRuf/fix/offcanvas-trigger-opened-later
fix: trigger opened.zf.offcanvas at the end to prevent race conditions
Nicolas Coden [Wed, 21 Feb 2018 22:57:48 +0000 (23:57 +0100)]
chore: update package-lock for mocha-headless-chrome
Nicolas Coden [Wed, 21 Feb 2018 15:43:35 +0000 (16:43 +0100)]
Merge branch 'develop' into develop
J. Eric Ellis [Wed, 21 Feb 2018 15:38:15 +0000 (10:38 -0500)]
Moved disabled settings into switch-paddle mixin.
J. Eric Ellis [Wed, 21 Feb 2018 14:12:20 +0000 (09:12 -0500)]
Changes requested by @ncoden
Added variables for switch-cursor-disabled and switch-opacity-disabled.
Altered css selector to use class instead of element.
Added reduced opacity for disabled switches.
Fixed line spacing for comment.
alliclemens [Wed, 21 Feb 2018 14:00:19 +0000 (08:00 -0600)]
Tests added for dropdown open
Daniel Ruf [Wed, 21 Feb 2018 12:28:18 +0000 (13:28 +0100)]
add missing whitespace to empty line
Daniel Ruf [Wed, 21 Feb 2018 12:27:41 +0000 (13:27 +0100)]
remove whitespace from empty line
Daniel Ruf [Wed, 21 Feb 2018 12:26:23 +0000 (13:26 +0100)]
revert component file and test to initial state
Daniel Ruf [Wed, 21 Feb 2018 12:16:34 +0000 (13:16 +0100)]
Revert "trigger opened.zf.offcanvas at the end"
This reverts commit
5c91b76b5542ad656b7cc8c7cc17664da837a09a .
Daniel Ruf [Wed, 21 Feb 2018 12:12:17 +0000 (13:12 +0100)]
Revert "fire opened.zf.offcanvas after adding the classes to prevent some race conditions"
This reverts commit
58ca2385e966dc5fcd47f41b32b79fed62f2daa3 .
Daniel Ruf [Wed, 21 Feb 2018 12:06:55 +0000 (13:06 +0100)]
fix: trigger opened.zf.offcanvas at the end to prevent race conditions
Daniel Ruf [Wed, 21 Feb 2018 09:30:01 +0000 (10:30 +0100)]
fix: camelcase the event names of the Dropdown Menu
alliclemens [Wed, 21 Feb 2018 04:04:28 +0000 (22:04 -0600)]
Add scroll to browser test display to allow viewing of all test results
J. Eric Ellis [Tue, 20 Feb 2018 21:34:13 +0000 (16:34 -0500)]
Updated name of new switches.
J. Eric Ellis [Tue, 20 Feb 2018 21:09:44 +0000 (16:09 -0500)]
Added 'disabled' styling to switches.
Nicolas Coden [Tue, 20 Feb 2018 11:05:43 +0000 (12:05 +0100)]
Merge pull request #10939 from homerjam/patch-1
Allow breakpoint mixin to accept a list
Nicolas Coden [Sun, 18 Feb 2018 16:29:48 +0000 (17:29 +0100)]
Merge pull request #10933 from ncoden/clean/revert-10555
clear: revert #10555 "Fixes #9151 - Drilldown event issue"
Nicolas Coden [Sun, 18 Feb 2018 16:19:05 +0000 (17:19 +0100)]
docs: add warning about code duplication in `breakpoint` and XY grid docs
Nicolas Coden [Sun, 18 Feb 2018 16:18:42 +0000 (17:18 +0100)]
docs: add the multiple-values `breakpoint` usage in the XY grid doc
Nicolas Coden [Sun, 18 Feb 2018 15:47:32 +0000 (16:47 +0100)]
docs: replace "array of values" by arglist in the `breakpoint` mixin doc
The `breakpoint` mixin now support an arglist and not an array.
Nicolas Coden [Sat, 17 Feb 2018 22:41:51 +0000 (23:41 +0100)]
Merge pull request #10936 from DanielRuf/patch/abide-stack-revert-end
Revert "fix: fix side-effect of jQuery .filter() in Abide.addA11yAttr…
Nicolas Coden [Sat, 17 Feb 2018 21:40:51 +0000 (22:40 +0100)]
refactor: simplify & document `Magellan._updateActive()`
Changes:
* add comments
* rename variables for improved readibility
* use narrow functions instead of `_this`, and `let`/`const`
* prevent useless DOM manipulations when $active did not changed
Unit tests run, as well as visual tests
Nicolas Coden [Sat, 17 Feb 2018 21:35:53 +0000 (22:35 +0100)]
fix: fire Magellan change event when there is no active link
Daniel Ruf [Sat, 17 Feb 2018 12:10:16 +0000 (13:10 +0100)]
reflect change of npm script name in readme
James Homer [Thu, 15 Feb 2018 11:00:20 +0000 (11:00 +0000)]
Update _breakpoint.scss
Daniel Ruf [Thu, 15 Feb 2018 09:02:42 +0000 (10:02 +0100)]
trigger opened.zf.offcanvas at the end
Daniel Ruf [Thu, 15 Feb 2018 08:21:57 +0000 (09:21 +0100)]
fire opened.zf.offcanvas after adding the classes to prevent some race conditions
Daniel Ruf [Thu, 15 Feb 2018 06:56:54 +0000 (07:56 +0100)]
revert GetDimensions() unit test change for IE11
Daniel Ruf [Wed, 14 Feb 2018 23:53:02 +0000 (00:53 +0100)]
tests: migrate to mocha-headless-chrome
Nicolas Coden [Thu, 15 Feb 2018 00:15:09 +0000 (01:15 +0100)]
Merge pull request #10941 from dragthor/getfnname-tests
getFnName unit tests ADDED
Kristofer Krause [Wed, 14 Feb 2018 22:00:05 +0000 (17:00 -0500)]
getFnName unit tests
James Homer [Wed, 14 Feb 2018 12:22:36 +0000 (12:22 +0000)]
Allow breakpoint mixin to accept a list
This fixes the following issue whereby gutters aren't set as expected for larger sizes:
```
.my-cell {
@include xy-cell(12);
@include breakpoint(medium) {
@include xy-cell(6/12);
}
}
```
by allowing the following:
```
.my-cell {
@include xy-cell(12);
@include breakpoint(medium, large, xlarge, xxlarge) {
@include xy-cell(6/12);
}
}
```
Daniel Ruf [Tue, 13 Feb 2018 19:38:02 +0000 (20:38 +0100)]
Revert "fix: fix side-effect of jQuery .filter() in Abide.addA11yAttributes", fixes #10935
This reverts commit
c6a69067701b24ceaccd2bad625c37898ad0b445 .
Nicolas Coden [Mon, 12 Feb 2018 21:28:19 +0000 (22:28 +0100)]
Revert "Fixes #9151 - Drilldown event issue"
This reverts commit
28389c31acc0197f71ed9188bc34e10db028c193 .
See: https://github.com/zurb/foundation-docs/pull/24
Nicolas Coden [Sat, 10 Feb 2018 21:53:50 +0000 (22:53 +0100)]
tests: add visual test for XY Grid reponsive widths #10891
Related to: Closes https://github.com/zurb/foundation-sites/issues/10891
Nicolas Coden [Sat, 10 Feb 2018 21:53:20 +0000 (22:53 +0100)]
fix: add missing flex reset in XY Grid responsive cell widths #10891
Closes https://github.com/zurb/foundation-sites/issues/10891