Skip to content

Commit

Permalink
Move Ophan attributes up to parent link element
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Oct 1, 2024
1 parent 094463f commit 1676b23
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export const CardBranding = ({
rel="nofollow"
aria-label={`Visit the ${branding.sponsorName} website`}
data-testid="card-branding-logo"
data-component={dataAttributes?.ophanComponentName}
data-link-name={dataAttributes?.ophanComponentLink}
>
<picture>
{darkModeAvailable && branding.logoForDarkBackground && (
Expand All @@ -105,8 +107,6 @@ export const CardBranding = ({
alt={branding.sponsorName}
width={logo.dimensions.width}
height={logo.dimensions.height}
data-component={dataAttributes?.ophanComponentName}
data-link-name={dataAttributes?.ophanComponentLink}
/>
</picture>
</a>
Expand Down

0 comments on commit 1676b23

Please sign in to comment.