{"action":"closed","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/9367","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/9367/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/9367/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/9367/events","html_url":"https://github.com/WordPress/gutenberg/issues/9367","id":354155060,"node_id":"MDU6SXNzdWUzNTQxNTUwNjA=","number":9367,"title":"\"wide\" and \"full\" alignments should always be usable in editor","user":{"login":"ZebulanStanphill","id":19592990,"node_id":"MDQ6VXNlcjE5NTkyOTkw","avatar_url":"https://avatars3.githubusercontent.com/u/19592990?v=4","gravatar_id":"","url":"https://api.github.com/users/ZebulanStanphill","html_url":"https://github.com/ZebulanStanphill","followers_url":"https://api.github.com/users/ZebulanStanphill/followers","following_url":"https://api.github.com/users/ZebulanStanphill/following{/other_user}","gists_url":"https://api.github.com/users/ZebulanStanphill/gists{/gist_id}","starred_url":"https://api.github.com/users/ZebulanStanphill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZebulanStanphill/subscriptions","organizations_url":"https://api.github.com/users/ZebulanStanphill/orgs","repos_url":"https://api.github.com/users/ZebulanStanphill/repos","events_url":"https://api.github.com/users/ZebulanStanphill/events{/privacy}","received_events_url":"https://api.github.com/users/ZebulanStanphill/received_events","type":"User","site_admin":false},"labels":[{"id":587918873,"node_id":"MDU6TGFiZWw1ODc5MTg4NzM=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Customization","name":"Customization","color":"655104","default":false},{"id":763189140,"node_id":"MDU6TGFiZWw3NjMxODkxNDA=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Templates%20API","name":"Templates API","color":"fbca04","default":false},{"id":531680828,"node_id":"MDU6TGFiZWw1MzE2ODA4Mjg=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Question","name":"[Type] Question","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-27T02:08:02Z","updated_at":"2018-08-27T19:36:35Z","closed_at":"2018-08-27T19:36:35Z","author_association":"CONTRIBUTOR","body":"## The issue\r\n**Please read the discussion that led to the creation of this issue:**\r\nhttps://wordpress.slack.com/archives/C02QB2JS7/p1535317929000100\r\n\r\nThe `wide` and `full` alignment options are only shown in the editor when the theme uses `add_theme_support( 'align-wide' )`. However, this approach can causes issues when switching themes.\r\n\r\n## Example of problematic situation\r\n1. Use a theme that supports the `wide` and `full` alignments.\r\n2. Create and save a post containing a Columns block using the `wide` or `full` alignment options.\r\n3. Switch to a theme that does not support the `wide` and `full` alignments.\r\n4. Try to change the alignment of the Columns block.\r\n5. Notice that you can not change the alignment because there are no alignment options shown.\r\n\r\n## Expected behavior\r\nThe editor should always show the `wide` and `full` alignment options, even when the theme does not provide styling for them.\r\n\r\nChanging themes should not cause content to become uneditable like this. **The editor should not care if the theme provides styling for any of the alignment options**; it should always make them available anyway. Technically, a theme could choose to not provide styling for the `left`, `center`, or `right` alignments, but that does not mean that those alignments should be hidden in the editor.\r\n\r\nEither the `wide` and `full` alignments should always be available or else they are not a standard feature and should not be included in core. The `wide` and `full` alignments should be treated like any other standard alignment in WordPress.\r\n\r\n## But what about making the editor look like the front-end?\r\nThe Columns block in the aforementioned situation already does not look like the front-end, and worse, there is no way to change it to the standard width.\r\n\r\nIf something like #9008 is implemented to make the editor import styles from the theme, the appearance of `wide` and `full` alignments would be derived from there, and in the case of a theme that does not provide styles, the alignments would simply look the same as the default alignment.\r\n\r\n## Screenshot\r\n![image](https://user-images.githubusercontent.com/19592990/44637494-02eba480-a977-11e8-8032-ddc643218f0f.png)\r\n\r\n## See also\r\n- https://wordpress.org/gutenberg/handbook/extensibility/theme-support/#wide-alignment"}}
{"actor":{"display_login":"designsimply"}}