Skip to content

Commit

Permalink
Replace the fullscreen "exit" icon with a back arrow (#13403)
Browse files Browse the repository at this point in the history
As per the notes in #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 youknowriad committed Mar 6, 2019
1 parent 30f10d0 commit bade2e1
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 bade2e1

Please sign in to comment.