Skip to content

Commit

Permalink
Merge pull request #765 from Financial-Times/add-the-ability-to-remov…
Browse files Browse the repository at this point in the history
…e-save-text-from-article-save-button

add optional prop to make article save button icon only
  • Loading branch information
joelcarr authored Feb 15, 2024
2 parents fe6b780 + 2badf11 commit fe588be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/x-article-save-button/src/ArticleSaveButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const ArticleSaveButton = (props) => {
aria-pressed={props.saved}
>
<span className="x-article-save-button__icon" />
{props.saved ? 'Saved' : 'Save'}
{props.iconOnly ? '' : props.saved ? 'Saved' : 'Save'}
</button>
</form>
)
Expand Down

0 comments on commit fe588be

Please sign in to comment.