Skip to content

Commit

Permalink
Use I with serif for italic format library icon
Browse files Browse the repository at this point in the history
This is to distinguish the character from the slash character to avoid
confusion with the slash inserter (especially with the new writing
prompt that says to type "/").
  • Loading branch information
mkevins committed Apr 30, 2021
1 parent 7d7a1dc commit c251037
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/icons/src/library/format-italic.native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

// This is an alternative italic icon provided for the mobile editor to
// avoid confusion with the slash key. See: https://github.com/wordpress-mobile/WordPress-iOS/pull/16064#issuecomment-821541499
// TODO: Once we align with core on an italic icon that does not look like a
// slash, we can remove the native variant
const formatItalic = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M16 5H10V6.5H12.0464L10.1136 17.5H8V19H14V17.5H12.0136L13.9464 6.5H16V5Z" />
</SVG>
);

export default formatItalic;

0 comments on commit c251037

Please sign in to comment.