Skip to content

Commit

Permalink
fix: Screen Reader Issue Messages Paypal Logo (DTCRCMERC-1899) (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikacolette29 authored Mar 6, 2023
1 parent 3e0bef5 commit 47694bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/message/parts/Logo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Logos = ({ mutations }) => {
<div className="message__logo-container" aria-hidden="true" alt="PayPal">
{logos.map(({ src, dimensions: [width, height] }) => (
<div className="message__logo message__logo--svg">
<img src={src} alt="PayPal Credit" />
<img src={src} alt="PayPal" />
<canvas height={height} width={width} />
</div>
))}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/spec/server/message/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('SSR message', () => {
expect(getByText(subHeadline)).toBeInTheDocument();
expect(getByText(disclaimer)).toBeInTheDocument();

expect(getByAltText('PayPal Credit')).toHaveAttribute('src', logoSrc);
expect(getByAltText('PayPal')).toHaveAttribute('src', logoSrc);
});
const getMatchPattern = (cssSelector, cssValue) => {
// convert plain string css into an array if RegExps
Expand Down

0 comments on commit 47694bf

Please sign in to comment.