Skip to content

Commit

Permalink
Replace the fullscreen "exit" icon with a back arrow (WordPress#13403)
Browse files Browse the repository at this point in the history
As per the notes in WordPress#10813, this PR updates the full screen "Exit" icon with a "Back" icon and label instead.

This icon is more common across the web, and will thus be a bit less confusing for users.

Note: The original issue suggested using a Material icon, but I've just swapped this out with the equivalent Dashicon for simplicity in implementtion. If someone knows how to swap that out with a SVG, go for it. 👍
  • Loading branch information
kjellr authored and gziolo committed Jan 25, 2019
1 parent c89de50 commit edc97d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function FullscreenModeClose( { isActive, postType } ) {
return (
<Toolbar className="edit-post-fullscreen-mode-close__toolbar">
<IconButton
icon="exit"
icon="arrow-left-alt2"
href={ addQueryArgs( 'edit.php', { post_type: postType.slug } ) }
label={ get(
postType,
[ 'labels', 'view_items' ],
__( 'View Posts' )
__( 'Back' )
) }
/>
</Toolbar>
Expand Down

0 comments on commit edc97d9

Please sign in to comment.