]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/log
thirdparty/foundation/foundation-sites.git
6 years agofix: use Grid instead of XY-Grid config in Grid "grid-column" function 11405/head
Nicolas Coden [Thu, 18 Oct 2018 21:55:26 +0000 (23:55 +0200)] 
fix: use Grid instead of XY-Grid config in Grid "grid-column" function

6 years agoclean: remove various "@debug" in SCSS
Nicolas Coden [Wed, 19 Sep 2018 22:01:04 +0000 (00:01 +0200)] 
clean: remove various "@debug" in SCSS

6 years agofeat: add responsive sizes/gutters to XY Grid mixins with "auto" breakpoint
Nicolas Coden [Wed, 19 Sep 2018 21:59:33 +0000 (23:59 +0200)] 
feat: add responsive sizes/gutters to XY Grid mixins with "auto" breakpoint

6 years agofix: use given value if no breakpoint value is found in mixin "-zf-breakpoint-value()"
Nicolas Coden [Wed, 19 Sep 2018 21:58:12 +0000 (23:58 +0200)] 
fix: use given value if no breakpoint value is found in mixin "-zf-breakpoint-value()"

Use the original value if no breakpoint value can be found in `$map` in the `-zf-breakpoint-value()` mixin. With this commit, `$name` can safely be a String value without being considered as a breakpoint name.

6 years agoMerge branch 'develop' into refactor/xy-cell
Nicolas Coden [Tue, 4 Sep 2018 21:43:37 +0000 (23:43 +0200)] 
Merge branch 'develop' into refactor/xy-cell

6 years agoMerge pull request #11485 from ncoden/fix/tabs-deep-link-custom-target-11484
Nicolas Coden [Mon, 3 Sep 2018 19:56:09 +0000 (21:56 +0200)] 
Merge pull request #11485 from ncoden/fix/tabs-deep-link-custom-target-11484

fix: use data-tabs-target to update history in Tabs deep-linking #11484

6 years agoMerge pull request #11486 from cyChop/develop
Nicolas Coden [Sun, 2 Sep 2018 20:51:07 +0000 (22:51 +0200)] 
Merge pull request #11486 from cyChop/develop

Fix a bug in tab changing

6 years agofix: use a safer selector for targetted tab title in "Tabs.selectTab" 11486/head
Nicolas Coden [Sun, 2 Sep 2018 20:32:25 +0000 (22:32 +0200)] 
fix: use a safer selector for targetted tab title in "Tabs.selectTab"

See https://github.com/zurb/foundation-sites/pull/11486

6 years agoMerge pull request #11487 from palicko/develop
Nicolas Coden [Sun, 2 Sep 2018 20:08:40 +0000 (22:08 +0200)] 
Merge pull request #11487 from palicko/develop

Fix wrong responsive spacing prototype classes

6 years agoFix wrong responsive spacing classes #11236 11487/head
Pavol Caban [Sun, 2 Sep 2018 19:32:40 +0000 (21:32 +0200)] 
Fix wrong responsive spacing classes #11236

6 years agoFix a bug in tab changing
Cyrille Chopelet [Sat, 1 Sep 2018 13:04:16 +0000 (15:04 +0200)] 
Fix a bug in tab changing

When using deepLink options, the handleTabChange will fail if using a non-standard markup (if there are DOM levels between the `.tabs-title` and the `a`).

This commit fixes precisely that.

6 years agofix: use data-tabs-target to update history in Tabs deep-linking #11484 11485/head
Nicolas Coden [Fri, 31 Aug 2018 21:40:57 +0000 (23:40 +0200)] 
fix: use data-tabs-target to update history in Tabs deep-linking #11484

Closes https://github.com/zurb/foundation-sites/issues/11484

6 years agoMerge pull request #11466 from ncoden/chore/simplify-github-template
Nicolas Coden [Sun, 26 Aug 2018 19:54:14 +0000 (21:54 +0200)] 
Merge pull request #11466 from ncoden/chore/simplify-github-template

chore: simplify GitHub templates

6 years agoMerge pull request #11475 from Harmageddon/patch-1
Nicolas Coden [Sun, 26 Aug 2018 19:52:02 +0000 (21:52 +0200)] 
Merge pull request #11475 from Harmageddon/patch-1

fix: Added missing quotation mark in documentation

6 years agoAdded missing quotation mark. 11475/head
Constantin Romankiewicz [Sun, 26 Aug 2018 16:59:39 +0000 (18:59 +0200)] 
Added missing quotation mark.

6 years agoMerge pull request #11472 from ncoden/fix/xy-grid-offset-zero-margin-11471
Nicolas Coden [Sun, 26 Aug 2018 13:55:36 +0000 (15:55 +0200)] 
Merge pull request #11472 from ncoden/fix/xy-grid-offset-zero-margin-11471

fix: fix offset when gutters are 0 in "xy-cell-offset" #11471

6 years agofix: fix offset calculation in "xy-cell-offset" 11472/head
Nicolas Coden [Sun, 26 Aug 2018 10:24:58 +0000 (12:24 +0200)] 
fix: fix offset calculation in "xy-cell-offset"

6 years agofix: fix generated offset for zero gutters in "xy-cell-offset" #11471
Nicolas Coden [Sat, 25 Aug 2018 21:53:49 +0000 (23:53 +0200)] 
fix: fix generated offset for zero gutters in "xy-cell-offset" #11471

Closes https://github.com/zurb/foundation-sites/issues/11471

6 years agoMerge pull request #11469 from ncoden/fix/clear-nest-submenu-classes-11467
Nicolas Coden [Fri, 24 Aug 2018 21:22:56 +0000 (23:22 +0200)] 
Merge pull request #11469 from ncoden/fix/clear-nest-submenu-classes-11467

fix: clean submenu items classes in Nest #11467

6 years agoMerge pull request #11462 from ncoden/fix/reveal-mobile-full-height-10879
Nicolas Coden [Thu, 23 Aug 2018 21:54:52 +0000 (23:54 +0200)] 
Merge pull request #11462 from ncoden/fix/reveal-mobile-full-height-10879

fix: avoid viewport height for fullscreen Reveal as it may be incorrect #10879

6 years agoMerge pull request #11454 from ncoden/fix/split-gulp-tasks-11452
Nicolas Coden [Thu, 23 Aug 2018 21:38:26 +0000 (23:38 +0200)] 
Merge pull request #11454 from ncoden/fix/split-gulp-tasks-11452

chore: use split gulp tasks instead of the unsuitable "finish" event #11452

6 years agofix: clear submenu item classe in Nest #11467 11469/head
Nicolas Coden [Wed, 22 Aug 2018 20:05:11 +0000 (22:05 +0200)] 
fix: clear submenu item classe in Nest #11467

Closes https://github.com/zurb/foundation-sites/issues/11467

6 years agoMerge pull request #11465 from ncoden/fix/avoid-stop-propagation-11457
Nicolas Coden [Tue, 21 Aug 2018 21:07:00 +0000 (23:07 +0200)] 
Merge pull request #11465 from ncoden/fix/avoid-stop-propagation-11457

fix: avoid stopping propagation when not necessary #11457

6 years agochore: simplify GitHub issue templates 11466/head
Nicolas Coden [Mon, 20 Aug 2018 22:49:52 +0000 (00:49 +0200)] 
chore: simplify GitHub issue templates

6 years agochore: simplify the GitHub pull request template
Nicolas Coden [Mon, 20 Aug 2018 21:50:20 +0000 (23:50 +0200)] 
chore: simplify the GitHub pull request template

6 years agofix: fix DropdownMenu body handler check to ignore the element itself 11465/head
Nicolas Coden [Mon, 20 Aug 2018 20:54:18 +0000 (22:54 +0200)] 
fix: fix DropdownMenu body handler check to ignore the element itself

> `andSelf()` is deprecated and should be replaced with `addBack()`
> -- @SassNinja

Also, `andSelf` cannot be used that way. This commit replace it with the opposite approach: checking if the target is the child of the element or the element itself using `closest()`.

6 years agoMerge pull request #11464 from ncoden/docs/remove-vertical-block-grid-11463
Nicolas Coden [Mon, 20 Aug 2018 19:27:51 +0000 (21:27 +0200)] 
Merge pull request #11464 from ncoden/docs/remove-vertical-block-grid-11463

docs: remove mentions of unsupported Y Grid from block grids section

6 years agoMerge pull request #11458 from SassNinja/docs/foundation-cli
Nicolas Coden [Mon, 20 Aug 2018 13:30:18 +0000 (15:30 +0200)] 
Merge pull request #11458 from SassNinja/docs/foundation-cli

foundation-cli docs for windows users

6 years agofix: avoid stopping event propagation when not necessary
Nicolas Coden [Sun, 19 Aug 2018 21:50:03 +0000 (23:50 +0200)] 
fix: avoid stopping event propagation when not necessary

Stopping the event propagation prevent the user to watch for the event at an higher level. If it was needed to prevent a duplicate behavior in a component, others methods should be used like debouncing the event.

Changes:
- Remove `stopPropagation` and `stopImmediatePropagation` from everywhere we do not want to cancel the event (AccordionMenu, Drilldown, DropdownMenu, Tabs, Tooltip).
- Update `DropdownMenu._removeBodyHandler` to also ignore click events on the element itself.

Others changes:
- Clean up `DropdownMenu._events` a bit.
- Add explainaitions where `stopPropagation` is still used (Triggers).

See https://github.com/zurb/foundation-sites/issues/11457

6 years agofix: prevent double Keyboard events handling without stopping propagation
Nicolas Coden [Sun, 19 Aug 2018 21:41:23 +0000 (23:41 +0200)] 
fix: prevent double Keyboard events handling without stopping propagation

Stopping the event propagation prevent the user to watch for the event at an higher level. If it was needed to prevent a duplicate behavior in a component, others methods should be used like debouncing the event.

Changes:
- Save and check for `event.zfIsKeyHandled` in Keyboard utility to prevent to handle twice the same event in different components.
- Remove `event.stopPropagation` from components' keyboard handlers (Accordion, DropdownMenu, OffCanvas and Tabs).

See https://github.com/zurb/foundation-sites/issues/11457

6 years agodocs: add docs about "mobile scroll" bug #9707 in OffCanvas
Nicolas Coden [Sun, 19 Aug 2018 21:33:22 +0000 (23:33 +0200)] 
docs: add docs about "mobile scroll" bug #9707 in OffCanvas

Add documentation for the OffCanvas private methods `_recordScrollable` and `_stopScrollPropagation` to explicitely justify the need for `stopPropagation`.

See #9707

6 years agodocs: remove mentions of unsupported Y Grid from block grids section 11464/head
Nicolas Coden [Sun, 19 Aug 2018 15:43:46 +0000 (17:43 +0200)] 
docs: remove mentions of unsupported Y Grid from block grids section

Block Grid is not supported for Y Grid and will not be implemented. It would add too much code for a feature that is will not be used in most projects.

Plus, Block Grid classes are not namespaced for the horizontal or vertical grid. Adding block grid classes for the vertical grid would lead of inconstencies or backward incompatibility and increased specificity.

Closes https://github.com/zurb/foundation-sites/issues/11463

6 years agoMerge pull request #11434 from ncoden/feat/orbit-slide-active-state-attribute
Nicolas Coden [Sat, 18 Aug 2018 21:59:36 +0000 (23:59 +0200)] 
Merge pull request #11434 from ncoden/feat/orbit-slide-active-state-attribute

feat: add Orbit element "data-slide-active-label" to target the bullet span to move

6 years agofix: avoid viewport height for fullscreen Reveal as it may be incorrect #10879 11462/head
Nicolas Coden [Sat, 18 Aug 2018 21:45:12 +0000 (23:45 +0200)] 
fix: avoid viewport height for fullscreen Reveal as it may be incorrect #10879

The CSS viewport is the larger possible view height and does not change with the visible area height. This is an intended behavior for optimization reason. See this article:

See: https://nicolas-hoizey.com/2015/02/viewport-height-is-taller-than-the-visible-part-of-the-document-in-some-mobile-browsers.html
See: https://github.com/zurb/foundation-sites/issues/10879#issuecomment-414087274

Closes https://github.com/zurb/foundation-sites/issues/10879

6 years agoMerge pull request #11461 from DanielRuf/fix/interchange-remove-extraneous-regular...
Nicolas Coden [Fri, 17 Aug 2018 20:33:01 +0000 (22:33 +0200)] 
Merge pull request #11461 from DanielRuf/fix/interchange-remove-extraneous-regular-expression-11460

fix: remove extraneous regular expression in interchange, closes #11460

6 years agofix: remove extraneous regular expression in interchange, closes #11460 11461/head
Daniel Ruf [Fri, 17 Aug 2018 19:40:36 +0000 (21:40 +0200)] 
fix: remove extraneous regular expression in interchange, closes #11460

6 years agoadd more foundation-cli install instructions for windows user 11458/head
SassNinja [Fri, 17 Aug 2018 10:26:24 +0000 (12:26 +0200)] 
add more foundation-cli install instructions for windows user

6 years agoMerge pull request #10884 from ncoden/feat/interchange-type-option-10883
Nicolas Coden [Thu, 16 Aug 2018 21:37:06 +0000 (23:37 +0200)] 
Merge pull request #10884 from ncoden/feat/interchange-type-option-10883

feat: add "type" option to force interchange replacement method #10883

6 years agoMerge branch 'develop' into feat/interchange-type-option-10883 10884/head
Nicolas Coden [Thu, 16 Aug 2018 21:25:47 +0000 (23:25 +0200)] 
Merge branch 'develop' into feat/interchange-type-option-10883

6 years agofeat: add support for "JPEG" picture in Interchange
Nicolas Coden [Thu, 16 Aug 2018 21:25:36 +0000 (23:25 +0200)] 
feat: add support for "JPEG" picture in Interchange

6 years agodocs: fix typos in Interchange
Nicolas Coden [Thu, 16 Aug 2018 21:24:28 +0000 (23:24 +0200)] 
docs: fix typos in Interchange

6 years agoMerge pull request #11450 from DanielRuf/fix/correct-selector-11447
Nicolas Coden [Wed, 15 Aug 2018 21:52:16 +0000 (23:52 +0200)] 
Merge pull request #11450 from DanielRuf/fix/correct-selector-11447

fix: use correct selector, fixes #11447

6 years agorefactor: move the customizer ZIPing to `customizer:zip` and `customizer:clean` 11454/head
Nicolas Coden [Wed, 15 Aug 2018 20:42:05 +0000 (22:42 +0200)] 
refactor: move the customizer ZIPing to `customizer:zip` and `customizer:clean`

The `finish` gulp event is an stream internal event and is not suitable to chain tasks.

Changes:
- Move the custom ZIP file generation to the `customizer:zip` task
- Move the cleaning of the customizer build directory to `customizer:clean` task

6 years agorefactor: split the docs build task to `docs:pages` and `docs:search`
Nicolas Coden [Wed, 15 Aug 2018 20:39:26 +0000 (22:39 +0200)] 
refactor: split the docs build task to `docs:pages` and `docs:search`

The `finish` gulp event is an stream internal event and is not suitable to chain tasks.

Changes:
- Move pages building to the `docs:pages` and `docs:pages:all` subtasks
- Move search entries building to the `docs:search` subtask

6 years agofix: remove broken Sass linting from Sass compilation task and move it to build task
Nicolas Coden [Wed, 15 Aug 2018 20:35:39 +0000 (22:35 +0200)] 
fix: remove broken Sass linting from Sass compilation task and move it to build task

Changes:
- Remove broken Sass linting from the `sass:foundation` task. The `finish` gulp event is an stream internal event and is not suitable to chain tasks.
- Add `lint:graceful`, `lint:graceful:sass` and `lint:graceful:javascript` to check for linting errors without throwing errors and breaking the chain of tasks.
- Call `lint:graceful` on the build task. For now, there is too much linting issues to display them at each Sass/Javascript compilation.

6 years agofix: use correct selector, fixes #11447 11450/head
Daniel Ruf [Tue, 14 Aug 2018 07:57:08 +0000 (09:57 +0200)] 
fix: use correct selector, fixes #11447

6 years agoMerge pull request #11444 from aorinevo/I-11443_develop_AN_gulp_fix
Nicolas Coden [Mon, 13 Aug 2018 21:28:25 +0000 (23:28 +0200)] 
Merge pull request #11444 from aorinevo/I-11443_develop_AN_gulp_fix

fix: i11443 gulp watch

6 years agoMerge pull request #11448 from melek/patch-1
Nicolas Coden [Mon, 13 Aug 2018 21:01:19 +0000 (23:01 +0200)] 
Merge pull request #11448 from melek/patch-1

docs: Fix sentence fragment in installation.md

6 years agofix: prevent "test:reload" task to block future reloads 11444/head
Nicolas Coden [Mon, 13 Aug 2018 20:55:59 +0000 (22:55 +0200)] 
fix: prevent "test:reload" task to block future reloads

6 years agodocs: fix Foundation 6 CLI uninstallation note phrasing 11448/head
Nicolas Coden [Mon, 13 Aug 2018 20:48:06 +0000 (22:48 +0200)] 
docs: fix Foundation 6 CLI uninstallation note phrasing

6 years agoUpdate installation.md
Lionel [Mon, 13 Aug 2018 19:33:37 +0000 (12:33 -0700)] 
Update installation.md

6 years agofix: i11443 gulp watch
Aori Nevo [Sun, 12 Aug 2018 15:12:56 +0000 (11:12 -0400)] 
fix: i11443 gulp watch

6 years agoMerge pull request #11435 from ncoden/docs/motion-ui-components
Nicolas Coden [Thu, 9 Aug 2018 21:56:39 +0000 (23:56 +0200)] 
Merge pull request #11435 from ncoden/docs/motion-ui-components

docs: add section about plugins options and improve examples in Motion UI docs

6 years agoMerge pull request #11433 from ncoden/fix/dropdown-menu-top-level-items-11412
Nicolas Coden [Thu, 9 Aug 2018 21:56:14 +0000 (23:56 +0200)] 
Merge pull request #11433 from ncoden/fix/dropdown-menu-top-level-items-11412

fix: fix Dropdown Menu top level item properties #11412

6 years agoMerge pull request #11000 from DanielRuf/fix/forms-select-top-bottom-padding-7916
Nicolas Coden [Mon, 6 Aug 2018 20:39:00 +0000 (22:39 +0200)] 
Merge pull request #11000 from DanielRuf/fix/forms-select-top-bottom-padding-7916

fix: remove top and bottom padding from select tags

7 years agodocs: add a simpler example in Motion UI docs header 11435/head
Nicolas Coden [Sun, 5 Aug 2018 21:59:44 +0000 (23:59 +0200)] 
docs: add a simpler example in Motion UI docs header

7 years agodocs: move Motion UI Toggler example to its own section
Nicolas Coden [Sun, 5 Aug 2018 21:59:28 +0000 (23:59 +0200)] 
docs: move Motion UI Toggler example to its own section

7 years agodocs: add fractions to the list of supported values in XY cell docs
Nicolas Coden [Sun, 5 Aug 2018 20:45:34 +0000 (22:45 +0200)] 
docs: add fractions to the list of supported values in XY cell docs

7 years agodocs: add section about XY cell parts and related mixins in XY Grid docs
Nicolas Coden [Sun, 5 Aug 2018 20:44:26 +0000 (22:44 +0200)] 
docs: add section about XY cell parts and related mixins in XY Grid docs

7 years agotest: add unit tests for the Orbit implicit/explicit active slide label moving 11434/head
Nicolas Coden [Sun, 5 Aug 2018 15:48:48 +0000 (17:48 +0200)] 
test: add unit tests for the Orbit implicit/explicit active slide label moving

7 years agodocs: add "data-slide-active-state" element to the Orbit documentation
Nicolas Coden [Sat, 4 Aug 2018 21:38:47 +0000 (23:38 +0200)] 
docs: add "data-slide-active-state" element to the Orbit documentation

7 years agofeat: use the "exceeding" span instead of the last one for Orbit current slide descriptor
Nicolas Coden [Sat, 4 Aug 2018 21:47:20 +0000 (23:47 +0200)] 
feat: use the "exceeding" span instead of the last one for Orbit current slide descriptor

7 years agorefactor: improve Orbit "_updateBullets" readibility
Nicolas Coden [Sat, 4 Aug 2018 18:01:27 +0000 (20:01 +0200)] 
refactor: improve Orbit "_updateBullets" readibility

7 years agofeat: add Orbit element "data-slide-active-label" to target the bullet span to move
Nicolas Coden [Sat, 4 Aug 2018 17:59:32 +0000 (19:59 +0200)] 
feat: add Orbit element "data-slide-active-label" to target the bullet span to move

Add the Orbit element `[data-slide-active-label]` to explicitely set which Orbit bullet children describe the active slide and should be moved to the new active slide.

7 years agoMerge pull request #11425 from ncoden/fix/drilldown-submenu-height-11416
Nicolas Coden [Sat, 4 Aug 2018 17:28:56 +0000 (19:28 +0200)] 
Merge pull request #11425 from ncoden/fix/drilldown-submenu-height-11416

fix: open Drilldrown with the currently opened (sub)menu height #11416

7 years agofix: fix Dropdown Menu top level item properties #11412 11433/head
Nicolas Coden [Thu, 2 Aug 2018 22:34:27 +0000 (00:34 +0200)] 
fix: fix Dropdown Menu top level item properties #11412

Changes:
- Only apply top-level styles to top-level items. This increase specificity but this markup structure is alreaddy assumed elsewhere in the component.
- Remove the default `$white` background on top-level items: it was never applied before #11377 and could now cause visual changes.

Closes https://github.com/zurb/foundation-sites/issues/11412

7 years agoclean: remove infinite timeout used for development in Drilldown tests 11425/head
Nicolas Coden [Thu, 2 Aug 2018 08:47:21 +0000 (10:47 +0200)] 
clean: remove infinite timeout used for development in Drilldown tests

7 years agotest: add unit test for the Drilldown height when reopened from a submenu #11416
Nicolas Coden [Tue, 31 Jul 2018 22:29:00 +0000 (00:29 +0200)] 
test: add unit test for the Drilldown height when reopened from a submenu #11416

See https://github.com/zurb/foundation-sites/issues/11416

7 years agofix: set a default for the current menu in Drilldown before it is used
Nicolas Coden [Tue, 31 Jul 2018 22:26:31 +0000 (00:26 +0200)] 
fix: set a default for the current menu in Drilldown before it is used

`$currentMenu` is used by `_getMaxDims`.

Changes: move `$currentMenu` initialization to `_init()`

7 years agotest: check the Drilldrown wrapper height instead of the element height
Nicolas Coden [Tue, 31 Jul 2018 22:24:36 +0000 (00:24 +0200)] 
test: check the Drilldrown wrapper height instead of the element height

Test the dynamic height of the wrapper instead of the static height of the element (data-drilldrown inside the wrapper).

7 years agotest: add unit tests for Drilldown resizing on toggling
Nicolas Coden [Tue, 31 Jul 2018 21:54:51 +0000 (23:54 +0200)] 
test: add unit tests for Drilldown resizing on toggling

7 years agofix: set the Drilldown height for on the currently opened (sub)menu #11416
Nicolas Coden [Mon, 30 Jul 2018 22:13:00 +0000 (00:13 +0200)] 
fix: set the Drilldown height for on the currently opened (sub)menu #11416

Changes:
- Save the currently opened sub-menu as `$currentMenu`
- When calculating the Drilldown wrapper height, use the currently opened menu height instead of the primary menu.

Closes https://github.com/zurb/foundation-sites/issues/11416

7 years agoMerge pull request #11419 from ncoden/chore/update-dependencies-2018-07-26
Nicolas Coden [Fri, 27 Jul 2018 19:08:13 +0000 (21:08 +0200)] 
Merge pull request #11419 from ncoden/chore/update-dependencies-2018-07-26

chore: update dependencies (2018-07-26)

7 years agochore: update lockfiles (2018-07-26) 11419/head
Nicolas Coden [Thu, 26 Jul 2018 21:47:07 +0000 (23:47 +0200)] 
chore: update lockfiles (2018-07-26)

7 years agochore: update dependencies (2018-07-26)
Nicolas Coden [Thu, 26 Jul 2018 21:41:53 +0000 (23:41 +0200)] 
chore: update dependencies (2018-07-26)

| Package           | From          | To            |
| :---------------- | :------------ | :------------ |
| @babel/core       | 7.0.0-beta.52 | 7.0.0-beta.54 |
| @babel/preset-env | 7.0.0-beta.52 | 7.0.0-beta.54 |
| autoprefixer      | ^8.2.0        | 9.0.1         |
| webpack-stream    | ^4.0.3        | 5.0.0         |

7 years agoMerge pull request #11411 from arloduff/fix/check-for-null-related-target
Nicolas Coden [Fri, 20 Jul 2018 21:57:21 +0000 (23:57 +0200)] 
Merge pull request #11411 from arloduff/fix/check-for-null-related-target

fix: resolve dropdown menu disappearing for #11410

7 years agodocs: fix typo in bug description in dropdownMenu 11411/head
Nicolas Coden [Fri, 20 Jul 2018 19:23:18 +0000 (21:23 +0200)] 
docs: fix typo in bug description in dropdownMenu

7 years agodocs: improve description of #11410 bug fix in dropdownMenu
Nicolas Coden [Thu, 19 Jul 2018 21:15:25 +0000 (23:15 +0200)] 
docs: improve description of #11410 bug fix in dropdownMenu

7 years agostyle: improve dropdown hiding event readability in dropdownMenu
Nicolas Coden [Thu, 19 Jul 2018 21:14:21 +0000 (23:14 +0200)] 
style: improve dropdown hiding event readability in dropdownMenu

7 years agofix: move relatedTarget null check to setTimeout for #11410
Arlo Duff [Thu, 19 Jul 2018 14:43:01 +0000 (10:43 -0400)] 
fix: move relatedTarget null check to setTimeout for #11410

7 years agodocs: improve description for "$size" in XY cell mixins
Nicolas Coden [Wed, 18 Jul 2018 22:49:39 +0000 (00:49 +0200)] 
docs: improve description for "$size" in XY cell mixins

7 years agofeat: add support of fractions in "xy-cell-base()" function and mixin.
Nicolas Coden [Wed, 18 Jul 2018 22:48:00 +0000 (00:48 +0200)] 
feat: add support of fractions in "xy-cell-base()" function and mixin.

Make the `xy-cell-base()` function and mixin support values representing a fraction (`6`, `50%`, `1 of 2` or `1/2`...) and treating them like "shrink".

**BREAKING CHANGE**: The `xy-cell()` and `xy-cell-base()` mixins now generate the XY cell base CSS when `$size` represents a fraction.

Static CSS did not changed.

7 years agofeat: add function "zf-is-fraction()"
Nicolas Coden [Wed, 18 Jul 2018 22:38:50 +0000 (00:38 +0200)] 
feat: add function "zf-is-fraction()"

zf-is-fraction(): Returns whether the given `$value` represents a fraction. Supports formats like `50%`, `1 of 2`, `1 per 2` or `1/2`.

7 years agofeat: add function "zf-parse-fraction()" and improve "fraction-to-percentage()" parsing
Nicolas Coden [Wed, 18 Jul 2018 22:07:52 +0000 (00:07 +0200)] 
feat: add function "zf-parse-fraction()" and improve "fraction-to-percentage()" parsing

7 years agorefactor: remove useless XY cell base generation
Nicolas Coden [Wed, 18 Jul 2018 22:00:24 +0000 (00:00 +0200)] 
refactor: remove useless XY cell base generation

7 years agofeat: refactor `xy-cell-base()` mixin and add corresponding function
Nicolas Coden [Wed, 18 Jul 2018 21:31:51 +0000 (23:31 +0200)] 
feat: refactor `xy-cell-base()` mixin and add corresponding function

Changes:
- Add function `xy-cell-base()`: Returns the appropriate CSS flex value for a cell base.
- Refactor mixin `xy-cell-base()` to use its corresponding function.

7 years agorefactor: prefer XY cell base/gutters/size mixins to generate classes
Nicolas Coden [Wed, 18 Jul 2018 21:15:24 +0000 (23:15 +0200)] 
refactor: prefer XY cell base/gutters/size mixins to generate classes

7 years agofix: remove extra "`" in XY cell error messages
Nicolas Coden [Tue, 17 Jul 2018 22:10:12 +0000 (00:10 +0200)] 
fix: remove extra "`" in XY cell error messages

7 years agofeat: refactor mixin "xy-cell-offset()" and add corresponding function
Nicolas Coden [Tue, 17 Jul 2018 21:41:34 +0000 (23:41 +0200)] 
feat: refactor mixin "xy-cell-offset()" and add corresponding function

Changes:
- Add function `xy-cell-offset()`: Returns the appropriate CSS value to offset a cell.
- Refactor mixin `xy-cell-offset()` to use its corresponding function.

**BREAKING CHANGE**: The `$breakpoint` argument in the `xy-cell-offset()` mixin does not support raw value anymore. Use `$gutters` instead.

7 years agodocs: add return value in `xy-cell-size` function documentation
Nicolas Coden [Tue, 17 Jul 2018 21:31:40 +0000 (23:31 +0200)] 
docs: add return value in `xy-cell-size` function documentation

7 years agofeat: add functions/mixins for XY Grid cell base/size/gutters
Nicolas Coden [Tue, 17 Jul 2018 21:30:42 +0000 (23:30 +0200)] 
feat: add functions/mixins for XY Grid cell base/size/gutters

Move all the `xy-cell()` mixin logics to dedicated functions and mixins.

Changes:
- Add function `xy-cell-gutters()`: Calculate the size of a cell gutters.
- Add function `xy-cell-size-css()`: Returns the appropriate CSS value for a cell size.
- Add mixin `xy-cell-size()`: ets sizing properties for cells.
- Add mixin `xy-cell-gutters()`: Sets gutters properties for cells.
- Refactor mixin `xy-cell()` to move all the logics to these new mixins.

All these functions/mixins now have the same interface. They do not always expect all the XY cell arguments, but they name and process the argument they expect the same way.

**BREAKING CHANGE**: When no gutter can be found to generate a cell, an error is now thrown

7 years agorefactor: move "-zf-each-breakpoint()" mixin iteration logics to "-zf-each-breakpoint()"
Nicolas Coden [Tue, 17 Jul 2018 20:45:41 +0000 (22:45 +0200)] 
refactor: move "-zf-each-breakpoint()" mixin iteration logics to "-zf-each-breakpoint()"

Changes:
* Add mixin `-zf-each-breakpoint-in()`
* Add function `-zf-bool()` to convert values to Booleans
* Refactor mixin `-zf-each-breakpoint()`  to rely on `-zf-each-breakpoint-in()`

There should be no change in the `-zf-each-breakpoint` API

7 years agofix: resolve dropdown menu disappearing for #11410
Arlo Duff [Tue, 17 Jul 2018 17:54:59 +0000 (13:54 -0400)] 
fix: resolve dropdown menu disappearing for #11410

7 years agoMerge pull request #11409 from veselinn/fix/slider-handle-negative-data-start
Nicolas Coden [Tue, 17 Jul 2018 07:27:40 +0000 (09:27 +0200)] 
Merge pull request #11409 from veselinn/fix/slider-handle-negative-data-start

fix: slider handle negative data-start values

7 years agotest: add tests for Slider._adjustValue 11409/head
Veselin Nikolov [Tue, 17 Jul 2018 04:52:19 +0000 (07:52 +0300)] 
test: add tests for Slider._adjustValue

7 years agofix: fix reversed "$vertical" option in "xy-cell-reset()" mixin
Nicolas Coden [Mon, 16 Jul 2018 22:19:28 +0000 (00:19 +0200)] 
fix: fix reversed "$vertical" option in "xy-cell-reset()" mixin

7 years agodocs: fix "xy-cell" name in "xy-cell-offset()" mixin description
Nicolas Coden [Mon, 16 Jul 2018 21:55:40 +0000 (23:55 +0200)] 
docs: fix "xy-cell" name in "xy-cell-offset()" mixin description

7 years agofix: remove unnecessary if from slider
Veselin Nikolov [Mon, 16 Jul 2018 19:06:37 +0000 (22:06 +0300)] 
fix: remove unnecessary if from slider

7 years agofix: slider handle negative data-start values
Veselin Nikolov [Mon, 16 Jul 2018 15:26:25 +0000 (18:26 +0300)] 
fix: slider handle negative data-start values

7 years agorefactor: factorize Float/XY Grid size functions into `fraction-to-percentage()`
Nicolas Coden [Sun, 15 Jul 2018 21:18:06 +0000 (23:18 +0200)] 
refactor: factorize Float/XY Grid size functions into `fraction-to-percentage()`