{"action":"closed","issue":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/370","labels_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/370/comments","events_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/370/events","html_url":"https://github.com/algolia/instantsearch.js/issues/370","id":113614842,"number":370,"title":"headerFooter adds too much markup","user":{"login":"pixelastic","id":283419,"avatar_url":"https://avatars.githubusercontent.com/u/283419?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelastic","html_url":"https://github.com/pixelastic","followers_url":"https://api.github.com/users/pixelastic/followers","following_url":"https://api.github.com/users/pixelastic/following{/other_user}","gists_url":"https://api.github.com/users/pixelastic/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelastic/subscriptions","organizations_url":"https://api.github.com/users/pixelastic/orgs","repos_url":"https://api.github.com/users/pixelastic/repos","events_url":"https://api.github.com/users/pixelastic/events{/privacy}","received_events_url":"https://api.github.com/users/pixelastic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/algolia/instantsearch.js/labels/%E2%9C%94%EF%B8%8F%20to%20be%20released","name":"✔️ to be released","color":"8CCB16"}],"state":"closed","locked":false,"assignee":{"login":"pixelastic","id":283419,"avatar_url":"https://avatars.githubusercontent.com/u/283419?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelastic","html_url":"https://github.com/pixelastic","followers_url":"https://api.github.com/users/pixelastic/followers","following_url":"https://api.github.com/users/pixelastic/following{/other_user}","gists_url":"https://api.github.com/users/pixelastic/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelastic/subscriptions","organizations_url":"https://api.github.com/users/pixelastic/orgs","repos_url":"https://api.github.com/users/pixelastic/repos","events_url":"https://api.github.com/users/pixelastic/events{/privacy}","received_events_url":"https://api.github.com/users/pixelastic/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-27T15:44:39Z","updated_at":"2015-11-03T15:13:12Z","closed_at":"2015-11-03T15:13:12Z","body":"Currently, all the widgets that implement the `headerFooter` decorator will generate a `<div class=\"ais-header\">` and `<div class=\"ais-footer\">` markup before and after. This occurs even if the said header and footer templates are empty.\r\n\r\nWhile implementing the ecommerce theme, I tried to replicate the default `header` style like this:\r\n![image](https://cloud.githubusercontent.com/assets/283419/10763274/a15a532e-7cc9-11e5-9b8c-a7d6b36d4f95.png)\r\n\r\nThis works well for any widget that should appear in an e-commerce sidebar but does not work with other widgets like the `stats`:\r\n![image](https://cloud.githubusercontent.com/assets/283419/10763294/b00abd46-7cc9-11e5-80da-01ff9da8c0ce.png)\r\n\r\nI'm not sure how to tackle that one. Maybe only adding the markup if a template for header/footer is passed as well? This would work for me, but do you see any issue in doing it that way?"}}