{"action":"created","issue":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/10818","repository_url":"https://api.github.com/repos/zurb/foundation-sites","labels_url":"https://api.github.com/repos/zurb/foundation-sites/issues/10818/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation-sites/issues/10818/comments","events_url":"https://api.github.com/repos/zurb/foundation-sites/issues/10818/events","html_url":"https://github.com/zurb/foundation-sites/issues/10818","id":284300578,"number":10818,"title":"Responsive gutters for xy-cell() doesn't work as expected.","user":{"login":"Lazerproof","id":5707348,"avatar_url":"https://avatars3.githubusercontent.com/u/5707348?v=4","gravatar_id":"","url":"https://api.github.com/users/Lazerproof","html_url":"https://github.com/Lazerproof","followers_url":"https://api.github.com/users/Lazerproof/followers","following_url":"https://api.github.com/users/Lazerproof/following{/other_user}","gists_url":"https://api.github.com/users/Lazerproof/gists{/gist_id}","starred_url":"https://api.github.com/users/Lazerproof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lazerproof/subscriptions","organizations_url":"https://api.github.com/users/Lazerproof/orgs","repos_url":"https://api.github.com/users/Lazerproof/repos","events_url":"https://api.github.com/users/Lazerproof/events{/privacy}","received_events_url":"https://api.github.com/users/Lazerproof/received_events","type":"User","site_admin":false},"labels":[{"id":295122547,"url":"https://api.github.com/repos/zurb/foundation-sites/labels/PR%20open","name":"PR open","color":"009800","default":false},{"id":67281231,"url":"https://api.github.com/repos/zurb/foundation-sites/labels/scss","name":"scss","color":"c6538c","default":false},{"id":618520978,"url":"https://api.github.com/repos/zurb/foundation-sites/labels/XY%20Grid","name":"XY Grid","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"ncoden","id":9939075,"avatar_url":"https://avatars2.githubusercontent.com/u/9939075?v=4","gravatar_id":"","url":"https://api.github.com/users/ncoden","html_url":"https://github.com/ncoden","followers_url":"https://api.github.com/users/ncoden/followers","following_url":"https://api.github.com/users/ncoden/following{/other_user}","gists_url":"https://api.github.com/users/ncoden/gists{/gist_id}","starred_url":"https://api.github.com/users/ncoden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncoden/subscriptions","organizations_url":"https://api.github.com/users/ncoden/orgs","repos_url":"https://api.github.com/users/ncoden/repos","events_url":"https://api.github.com/users/ncoden/events{/privacy}","received_events_url":"https://api.github.com/users/ncoden/received_events","type":"User","site_admin":false},"assignees":[{"login":"ncoden","id":9939075,"avatar_url":"https://avatars2.githubusercontent.com/u/9939075?v=4","gravatar_id":"","url":"https://api.github.com/users/ncoden","html_url":"https://github.com/ncoden","followers_url":"https://api.github.com/users/ncoden/followers","following_url":"https://api.github.com/users/ncoden/following{/other_user}","gists_url":"https://api.github.com/users/ncoden/gists{/gist_id}","starred_url":"https://api.github.com/users/ncoden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncoden/subscriptions","organizations_url":"https://api.github.com/users/ncoden/orgs","repos_url":"https://api.github.com/users/ncoden/repos","events_url":"https://api.github.com/users/ncoden/events{/privacy}","received_events_url":"https://api.github.com/users/ncoden/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2017-12-23T11:00:40Z","updated_at":"2017-12-23T18:01:34Z","closed_at":null,"author_association":"NONE","body":"<!-- For replicatable bugs or feature requests GitHub is the right place. The [Foundation Forum](http://foundation.zurb.com/forum) would be a great place to seek some help with general questions or help with your code. There you can reach out to the community to share your insights or ask questions. -->\r\nMy settings:\r\n```\r\n$breakpoints: (\r\n  small: 0,\r\n  medium: 640px,\r\n  large: 1024px,\r\n  xlarge: 1200px,\r\n  xxlarge: 1440px,\r\n);\r\n$print-breakpoint: large;\r\n$breakpoint-classes: (small medium large);\r\n```\r\n```\r\n$xy-grid: true;\r\n$grid-container: $global-width;\r\n$grid-columns: 12;\r\n$grid-margin-gutters: (\r\n  small: 20px,\r\n  medium: 30px,\r\n);\r\n$grid-padding-gutters: $grid-margin-gutters;\r\n$grid-container-padding: $grid-padding-gutters;\r\n$grid-container-max: $global-width;\r\n$xy-block-grid-max: 8;\r\n```\r\n\r\nThis code\r\n```\r\n@include xy-cell(12);\r\n\t\r\n@include breakpoint(medium) {\r\n\t@include xy-cell(8);\r\n}\r\n```\r\noutputs\r\n```\r\n.contacts {\r\n  width: calc(100% - 1.875rem);\r\n  margin-right: 0.9375rem;\r\n  margin-left: 0.9375rem;\r\n}\r\n\r\n@media print, screen and (min-width: 40em) {\r\n  .contacts {\r\n    width: calc(66.66667% - 1.875rem);\r\n    margin-right: 0.9375rem;\r\n    margin-left: 0.9375rem;\r\n```\r\nI'm not sure is it bug or designed behavior, but based on old float grid behavior, behavior of xy-gutters mixin and some other opened issues, I expected that gutters for xy-cell mixin outside of breakpoint mixin should fallback to the smallest breakpoint instead of the largest.\r\nSo I expected to get \r\n\r\n```\r\n.contacts {\r\n  width: calc(100% - 1.25rem);\r\n  margin-right: 0.625rem;\r\n  margin-left: 0.625rem;\r\n}\r\n\r\n@media print, screen and (min-width: 40em) {\r\n  .contacts {\r\n    width: calc(66.66667% - 1.875rem);\r\n    margin-right: 0.9375rem;\r\n    margin-left: 0.9375rem;\r\n```\r\nSo currently it leads to more coding to get desired result \r\n```\r\n@include xy-cell(12, $breakpoint: small)\r\n```\r\nor \r\n```\r\n@include breakpoint(small) {\r\n    @include xy-cell(12)\r\n}\r\n```\r\n\r\nAlso falling back to the largest breakpoint gutters conflicts with xy-gutters($negative: true) which outputs gutters for every breakpoint.\r\nVersion 6.4.4-rc1\r\n"},"comment":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/comments/353739877","html_url":"https://github.com/zurb/foundation-sites/issues/10818#issuecomment-353739877","issue_url":"https://api.github.com/repos/zurb/foundation-sites/issues/10818","id":353739877,"user":{"login":"ncoden","id":9939075,"avatar_url":"https://avatars2.githubusercontent.com/u/9939075?v=4","gravatar_id":"","url":"https://api.github.com/users/ncoden","html_url":"https://github.com/ncoden","followers_url":"https://api.github.com/users/ncoden/followers","following_url":"https://api.github.com/users/ncoden/following{/other_user}","gists_url":"https://api.github.com/users/ncoden/gists{/gist_id}","starred_url":"https://api.github.com/users/ncoden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncoden/subscriptions","organizations_url":"https://api.github.com/users/ncoden/orgs","repos_url":"https://api.github.com/users/ncoden/repos","events_url":"https://api.github.com/users/ncoden/events{/privacy}","received_events_url":"https://api.github.com/users/ncoden/received_events","type":"User","site_admin":false},"created_at":"2017-12-23T18:01:34Z","updated_at":"2017-12-23T18:01:34Z","author_association":"COLLABORATOR","body":"This is not related to the current issue, right ? I'll check."}}
{"actor":{"display_login":"ncoden"}}