{"action":"opened","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/10152","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/10152/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/10152/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/10152/events","html_url":"https://github.com/WordPress/gutenberg/issues/10152","id":363432906,"node_id":"MDU6SXNzdWUzNjM0MzI5MDY=","number":10152,"title":"Suggestion: Add a default alignment class to all blocks","user":{"login":"brettsmason","id":73229,"node_id":"MDQ6VXNlcjczMjI5","avatar_url":"https://avatars3.githubusercontent.com/u/73229?v=4","gravatar_id":"","url":"https://api.github.com/users/brettsmason","html_url":"https://github.com/brettsmason","followers_url":"https://api.github.com/users/brettsmason/followers","following_url":"https://api.github.com/users/brettsmason/following{/other_user}","gists_url":"https://api.github.com/users/brettsmason/gists{/gist_id}","starred_url":"https://api.github.com/users/brettsmason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettsmason/subscriptions","organizations_url":"https://api.github.com/users/brettsmason/orgs","repos_url":"https://api.github.com/users/brettsmason/repos","events_url":"https://api.github.com/users/brettsmason/events{/privacy}","received_events_url":"https://api.github.com/users/brettsmason/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-25T06:47:56Z","updated_at":"2018-09-25T06:47:56Z","closed_at":null,"author_association":"NONE","body":"The `.alignwide`/`.alignfull` functionality is great and provides some much needed flexibility with layouts. However one problem I see and have been experiencing with the system is there is no default alignment class.\r\n\r\nThere are a few reasons/use cases where this would really help:\r\n\r\n1. In themes, I at least have been styling content like this:\r\n```\r\n.entry-content > * {\r\n    max-width: 1024px;\r\n}\r\n```\r\n\r\n2. In creation of custom blocks in a plugin, for example a container block, there is no way to know what width to contain the inner content to, eg:\r\n\r\n```\r\n<div class=\"my-container-block\"><!-- This is full width -->\r\n    <div class=\"inner-content\"><!-- this should be the same width as point 1 -->\r\n    </div>\r\n</div>\r\n```\r\n\r\nBoth of the above cases could be made a lot easier with a simple class that every block receives and is a required style in a theme. I'm not sure what that class should be, but I think it would be really helpful for more complex layouts. Happy to expand on the above if its not clear enough."}}
{"actor":{"display_login":"brettsmason"}}