Skip to content

Commit

Permalink
fix: data-qa for content list
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd committed Sep 25, 2024
1 parent f5fa221 commit 1790520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/HTML/HTML.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ const HTML = ({
? React.createElement(selectVariant({content, block, variant, children}), {
dangerouslySetInnerHTML: {__html: content},
className: contentClassName,
'data-qa': qa,
...rest,
})
: null;
}, [block, children, content, contentClassName, rest, variant]);
}, [block, children, content, contentClassName, qa, rest, variant]);

if (onlyContent) {
return renderedContent;
Expand All @@ -47,7 +48,6 @@ const HTML = ({
variant,
{
className,
'data-qa': qa,
},
contentPosition === 'start' ? renderedContent : null,
children,
Expand Down
1 change: 1 addition & 0 deletions src/sub-blocks/Content/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const Content = (props: ContentProps) => {
content={text}
modifiers={{constructor: true, [`constructor-size-${size}`]: true}}
id={textId}
qa={qaAttributes.list}
/>
</div>
)}
Expand Down

0 comments on commit 1790520

Please sign in to comment.