{"action":"created","issue":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/8866","repository_url":"https://api.github.com/repos/zurb/foundation-sites","labels_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8866/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8866/comments","events_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8866/events","html_url":"https://github.com/zurb/foundation-sites/issues/8866","id":157549055,"number":8866,"title":"[Foundation for Sites] Error in grid-context mixin","user":{"login":"ikemarrus","id":4972861,"avatar_url":"https://avatars.githubusercontent.com/u/4972861?v=3","gravatar_id":"","url":"https://api.github.com/users/ikemarrus","html_url":"https://github.com/ikemarrus","followers_url":"https://api.github.com/users/ikemarrus/followers","following_url":"https://api.github.com/users/ikemarrus/following{/other_user}","gists_url":"https://api.github.com/users/ikemarrus/gists{/gist_id}","starred_url":"https://api.github.com/users/ikemarrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikemarrus/subscriptions","organizations_url":"https://api.github.com/users/ikemarrus/orgs","repos_url":"https://api.github.com/users/ikemarrus/repos","events_url":"https://api.github.com/users/ikemarrus/events{/privacy}","received_events_url":"https://api.github.com/users/ikemarrus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zurb/foundation-sites/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/zurb/foundation-sites/labels/help%20wanted","name":"help wanted","color":"eb6420"},{"url":"https://api.github.com/repos/zurb/foundation-sites/labels/scss","name":"scss","color":"c6538c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-05-30T19:42:18Z","updated_at":"2016-10-24T09:37:09Z","closed_at":"2016-09-30T00:18:52Z","body":"<!-- Please only file bugs with Foundation on GitHub. If you've got a more general question about how to use Foundation, we can help you on the Foundation Forum: http://foundation.zurb.com/forum -->\r\n\r\n**How can we reproduce this bug?**\r\nIn version 6.2.1\r\n1.set a grid context of 10 (or another number other than the default) with nested scss that calls grid-column to set up columns - the column width is correctly calculated based on 10 columns\r\n2. Outside that nested scss, call grid-column to set up columns. look at how widths for columns are being calculated - they are still being calculated with a grid context of 10 instead of the default grid context (e.g. 12)\r\n\r\nI looked at the code for grid-context:\r\n\r\n $old-grid-column-count: $grid-column-count;\r\n    $grid-column-count: $columns !global;\r\n    @if $root {\r\n        @at-root {\r\n            @content;\r\n        }\r\n    }\r\n    @else {\r\n        @content;\r\n    }\r\n    // Restore the old column count\r\n    $grid-column-count: $old-grid-column-count; \r\n\r\n\r\nNote that $grid-column-count is specified as a global variable when it's being set, but as a local variable when it's being reset. When I changed the reset to also be global, the grid-context was restored correctly\r\n"},"comment":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/comments/255693561","html_url":"https://github.com/zurb/foundation-sites/issues/8866#issuecomment-255693561","issue_url":"https://api.github.com/repos/zurb/foundation-sites/issues/8866","id":255693561,"user":{"login":"rogercoathup","id":994130,"avatar_url":"https://avatars.githubusercontent.com/u/994130?v=3","gravatar_id":"","url":"https://api.github.com/users/rogercoathup","html_url":"https://github.com/rogercoathup","followers_url":"https://api.github.com/users/rogercoathup/followers","following_url":"https://api.github.com/users/rogercoathup/following{/other_user}","gists_url":"https://api.github.com/users/rogercoathup/gists{/gist_id}","starred_url":"https://api.github.com/users/rogercoathup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogercoathup/subscriptions","organizations_url":"https://api.github.com/users/rogercoathup/orgs","repos_url":"https://api.github.com/users/rogercoathup/repos","events_url":"https://api.github.com/users/rogercoathup/events{/privacy}","received_events_url":"https://api.github.com/users/rogercoathup/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T09:37:09Z","updated_at":"2016-10-24T09:37:09Z","body":"Assuming this also fixes / closes: https://github.com/zurb/foundation-sites/issues/9198\r\n"}}
{"actor":{"display_login":"rogercoathup"}}