Skip to content

Commit

Permalink
fix: passing in ID and test IDs to nested <A/> for Link
Browse files Browse the repository at this point in the history
  • Loading branch information
zeddotes committed Feb 17, 2023
1 parent 7e188ef commit bbab503
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/Link/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ export function Link(props) {
<Component
href={props.href}
className={`${basicStyle}`}
id={props.id}
data-testid={props.dataTestId}
data-cy={props.dataCy || props.id}
data-cy-button={props.dataCyButton}
disabled={props.disabled}
lang={props.lang}
target={props.target}
Expand All @@ -54,7 +50,12 @@ export function Link(props) {
locale={props.locale}
onClick={props.onClick ? props.onClick : undefined}
>
<a>
<a
id={props.id}
data-testid={props.dataTestId}
data-cy={props.dataCy || props.id}
data-cy-button={props.dataCyButton}
>
{/* <!-- English Text: English --> */}
<span className={props.abbr ? "ds-language-toggle-text" : ""}>
{props.text}
Expand Down

0 comments on commit bbab503

Please sign in to comment.