{"action":"opened","issue":{"url":"https://api.github.com/repos/zurb/foundation-sites-6/issues/239","labels_url":"https://api.github.com/repos/zurb/foundation-sites-6/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation-sites-6/issues/239/comments","events_url":"https://api.github.com/repos/zurb/foundation-sites-6/issues/239/events","html_url":"https://github.com/zurb/foundation-sites-6/issues/239","id":115745272,"number":239,"title":"scsss compilation error in show-for-only visibility classes","user":{"login":"michael-wilson","id":1662255,"avatar_url":"https://avatars.githubusercontent.com/u/1662255?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-wilson","html_url":"https://github.com/michael-wilson","followers_url":"https://api.github.com/users/michael-wilson/followers","following_url":"https://api.github.com/users/michael-wilson/following{/other_user}","gists_url":"https://api.github.com/users/michael-wilson/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-wilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-wilson/subscriptions","organizations_url":"https://api.github.com/users/michael-wilson/orgs","repos_url":"https://api.github.com/users/michael-wilson/repos","events_url":"https://api.github.com/users/michael-wilson/events{/privacy}","received_events_url":"https://api.github.com/users/michael-wilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-08T17:21:45Z","updated_at":"2015-11-08T17:21:45Z","closed_at":null,"body":"the show-for-only($size) mixin gives an error when provided it with 5 breakpoint size classes including xxlarge, but not if provided 4 or 3.\r\n\r\nit fails as it passes a null to the -zf-bp-to-em mixin which then passes an unchecked null to the unit() function. It works with 3 or 4 entries as by default the map has 5 entries. when the list has 5 entries then the -zf-map-next mixin returns null and all hell breaks loose.\r\n\r\ni got round it by changing the show-for-only mixin to this\r\n\r\n@mixin show-for-only($size) {\r\n  $lower-bound: -zf-bp-to-em(map-get($breakpoints, $size)) - (1/16);\r\n  $upper-bound: -zf-map-next($breakpoints, $size);\r\n\r\n  @if $upper-bound == null {\r\n    @media screen and (max-width: $lower-bound) {\r\n      display: none !important;\r\n    }\r\n  }\r\n  @else {\r\n    $upper-bound: -zf-bp-to-em(-zf-map-next($breakpoints, $size));\r\n    @media screen and (max-width: $lower-bound), screen and (min-width: $upper-bound) {\r\n      display: none !important;\r\n    }\r\n  }\r\n}\r\n\r\nits not pretty but it got me working again."}}