{"push_id":1435075952,"size":1,"distinct_size":1,"ref":"refs/heads/fix-the-hovering-blue-sidebar-on-pages-without-related-links","head":"702fe78a55953c8cb7b34a4c089b7b47fc9e6692","before":"7899575d408d1fc9848e997e17a799364610543b","commits":[{"sha":"702fe78a55953c8cb7b34a4c089b7b47fc9e6692","author":{"name":"David Silva","email":"51885a551ad98d0b76c14aaae9648e12f7552843@digital.cabinet-office.gov.uk"},"message":"Avoid rendering the side content when there's no content\n\nThis commit aims to superseed https://github.com/alphagov/frontend/pull/1069\nWe believe that is the component responsability to make sure the requirements are met\nin order to do the the job, in this case, to render the content.\n\nWhat this commit suggest is that we do our components with [Design by Contract](https://en.wikipedia.org/wiki/Design_by_contract) in mind,\nwhat it means is that the component becomes responsible to dictate how it should be used.\n\nAlso there's a certain advantage of doing this at the component level,\nthis avoids extra work on the developer to chase all the rendering applications to make sure they should or not render the component.\n\nSo keeping it on the component side is not only beneficial code wise but also more efficient.\n\nTrello: https://trello.com/c/5TCdhKVN/320-fix-the-hovering-blue-sidebar-on-pages-without-related-links\n\n![screen shot 2016-12-01 at 14 57 01](https://cloud.githubusercontent.com/assets/136777/20798375/82f36314-b7d6-11e6-92cc-0196f3eedb85.png)\n\n![screen shot 2016-12-01 at 14 57 12](https://cloud.githubusercontent.com/assets/136777/20798382/86fe78c2-b7d6-11e6-89ec-3497e14e7168.png)","distinct":true,"url":"https://api.github.com/repos/alphagov/static/commits/702fe78a55953c8cb7b34a4c089b7b47fc9e6692"}]}
{"actor":{"display_login":"Davidslv"}}