Skip to content

Commit

Permalink
add optional prop to make article save button icon only
Browse files Browse the repository at this point in the history
  • Loading branch information
MMSaleh-FT committed Feb 8, 2024
1 parent e9062b0 commit 2badf11
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 2badf11

Please sign in to comment.