Card: back button i18n

This commit is contained in:
Alex Gleason 2022-05-07 12:04:28 -05:00
parent 6ff34d77fd
commit e0cc331781
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -62,7 +62,7 @@ const CardHeader: React.FC<ICardHeader> = ({ children, backHref, onBackClick }):
return (
<Comp {...backAttributes} className='mr-2 text-gray-900 dark:text-gray-100' aria-label={intl.formatMessage(messages.back)}>
<SvgIcon src={require('@tabler/icons/icons/arrow-left.svg')} className='h-6 w-6' />
<span className='sr-only' data-testid='back-button'>Back</span>
<span className='sr-only' data-testid='back-button'>{intl.formatMessage(messages.back)}</span>
</Comp>
);
};