Nicolas Coden [Thu, 5 Apr 2018 22:13:30 +0000 (00:13 +0200)]
chore: regenerate yarn/npm lockfiles separately
Steps:
1. Install packages with Yarn, generating `yarn.lock` with sha1 integrity hashs (sha256/512 used by NPM is not supported by Yarn)
2. Generate `package-lock.json` alone with `npm i --package-lock-only`
Resolved dependencies should be the sames but with the perfect lockfile format for each package manager.
Nicolas Coden [Thu, 5 Apr 2018 20:50:37 +0000 (22:50 +0200)]
chore: migrate to webpack 4
Changes:
* add required `mode` option. Use "development" mode as optimization are handled by others gulp plugins.
* use `webpack` instead of `webpack2`
* remove stats about chunks (set as true by default in webpack 4)
Nicolas Coden [Mon, 2 Apr 2018 16:27:39 +0000 (18:27 +0200)]
chore: use permissive selector for all compatible dependencies versions
We actually support jQuery `>= v2.2.0` and what-input `>= v4.1.0`. There is no point with using the "minor only" selector for dependencies when we do support older versions.
Nicolas Coden [Sun, 1 Apr 2018 21:30:26 +0000 (23:30 +0200)]
fix: fix cell widths overridden by readjusted smaller breakpoints in XY Grid #10468
With margin gutters, a cell width is defined with its gutter. This is why we have to readjust all sizes and not only `.cell` when applying the new gutter in a bigger breakpoint. This must include all sizes for smaller breakpoints too.
Before this commit there was an optimization that prevent gutters for smaller breakpoints without a new gutter defined to be regenerated. This can seems logical since no gutter was generated for this breakpoint so there is nothing to readjust.
However, because the gutter is defined _with the width/height_, the readjusted width/height of readjusted gutters (with a custom gutter) overrides the width/height of bigger non-readjusted (without a custom gutter) breakpoint.
Changes:
* Readjust gutters for all breakpoints even without new gutter defined
* Add explainaitions
Nicolas Coden [Sun, 1 Apr 2018 18:20:04 +0000 (20:20 +0200)]
fix: use more permissive URL pattern for Abide #9180
Note: the new RegExp is close to an "Standard URL validation" and allow a lot of valid URLs that may have to be forbidden on the end website (intrants, local domains, utf8 & unicode characters...).
For more restrictive RegExps, see https://mathiasbynens.be/demo/url-regex.
Closes https://github.com/zurb/foundation-sites/issues/9180
From https://github.com/talyssonoc/CommonRegexJS/blob/e2901b9f57222bc14069dc8f0598d5f412555411/lib/commonregex.js#L76
Nicolas Coden [Sat, 31 Mar 2018 16:09:53 +0000 (18:09 +0200)]
feat: add back official `disableForTouch` option for Tooltip #9995
Changes:
* Add documentation for the `disableForTouch` option
* Prevent any event to be triggerd on touch with `disableForTouch`, including mouse enter/leave and focus events
Nicolas Coden [Fri, 30 Mar 2018 21:02:15 +0000 (23:02 +0200)]
fix: revert to Sass default 5-digit precision for breakpoint gutters
I was wrong, Sass actually has a default precision of 5 digits. Bootstrap-sass uses 8 digits but require to update the Sass compiler options.
See: https://github.com/twbs/bootstrap-sass#sass-number-precision
Nicolas Coden [Mon, 26 Mar 2018 08:08:31 +0000 (10:08 +0200)]
fix: update history when closing Reveal with `replaceState` #8012
When closing a Reveal with `replaceState: true`, push a new entry to reset the hash. So going back to the history reopen the modals opened before in reverse order.
Nicolas Coden [Sun, 25 Mar 2018 01:25:02 +0000 (03:25 +0200)]
fix: ensure that headless-chrome tests run in all environments
Bug with the Linux sandbox SUID can appear or not depending on the Kernel version on the runner. https://gist.github.com/ncoden/6e79cef6f62608fd9443ea2a601806bc
Using `no-sandbox` with chrome is generally not recommended for security reasons, but recommended in this case by Travis.
Nicolas Coden [Fri, 23 Mar 2018 22:14:36 +0000 (23:14 +0100)]
chore: drop `normalize-scss` and upgrade to normalize.css v8.0.0
`normalize-scss` is not maintained and actually pollute the Sass namespace. Move back to a as-hard-to-maintain approach with a Sass mixin hosting the normalize.css code.
Note: `/* */` comments where replaced by `//` comments to not being output.
Nicolas Coden [Fri, 23 Mar 2018 19:01:12 +0000 (20:01 +0100)]
style: sort Sass components inside each category alphabetically
Note:
* forms & typograph has been moved to global styles, as they apply properties on tags and not custom components
* Accodtion/Drilldrown/Dropdown menus must be after `menu`
Nicolas Coden [Wed, 21 Mar 2018 20:52:38 +0000 (21:52 +0100)]
docs: update & improve Js installation docs for UMD modules
Changes:
* remove section about "dist vs source files": only dist files should be imported for now
* add import examples for ESM, AMD & CommonJS
* simplify section about HTML imports