Skip to content

Commit

Permalink
Change Twitter reference and logo in the post edit sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidasmi committed Mar 21, 2024
1 parent f930ad7 commit 83b17c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions css/src/metabox.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/js/images/x-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/js/src/components/PostPublish.js
Expand Up @@ -2,7 +2,7 @@ import PropTypes from "prop-types";
import { __ } from "@wordpress/i18n";
import { Fragment } from "@wordpress/element";
import { ReactComponent as FacebookIcon } from "../../images/icon-facebook.svg";
import { ReactComponent as TwitterIcon } from "../../images/icon-twitter.svg";
import { ReactComponent as TwitterIcon } from "../../images/x-logo.svg";

/**
* Renders the PostPublish Yoast integration.
Expand Down Expand Up @@ -30,9 +30,9 @@ export default function PostPublish( { permalink } ) {
</a>
</li>
<li>
<a href={ "https://twitter.com/share?url=" + encodedUrl } target="_blank" rel="noopener noreferrer">
<a href={ "https://twitter.com/share?url=" + encodedUrl } target="_blank" rel="noopener noreferrer" class="x-share">
<TwitterIcon />
{ __( "Twitter", "wordpress-seo" ) }
{ __( "X", "wordpress-seo" ) }
<span className="screen-reader-text">
{
/* translators: Hidden accessibility text. */
Expand Down

0 comments on commit 83b17c4

Please sign in to comment.