Skip to content

Commit

Permalink
Use <s> for strikethrough, not <del> (#14389)
Browse files Browse the repository at this point in the history
* Use <s> for strikethrough, not <del>

* Update e2e test
  • Loading branch information
ellatrix authored and youknowriad committed Mar 20, 2019
1 parent 381b1c0 commit 3d00d12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`RichText should apply formatting when selection is collapsed 1`] = `

exports[`RichText should apply formatting with access shortcut 1`] = `
"<!-- wp:paragraph -->
<p><del>test</del></p>
<p><s>test</s></p>
<!-- /wp:paragraph -->"
`;

Expand Down
2 changes: 1 addition & 1 deletion packages/format-library/src/strikethrough/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const name = 'core/strikethrough';
export const strikethrough = {
name,
title: __( 'Strikethrough' ),
tagName: 'del',
tagName: 's',
className: null,
edit( { isActive, value, onChange } ) {
const onToggle = () => onChange( toggleFormat( value, { type: name } ) );
Expand Down

0 comments on commit 3d00d12

Please sign in to comment.