Skip to content

Commit 666945d

Browse files
authored
Merge pull request #14347 from guardian/add-data-gu-name-to-callout-and-pullquote
Add `data-gu-name` attribute to pullquote and callout elements
2 parents 21b5fd0 + 8f7310e commit 666945d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dotcom-rendering/src/components/CalloutBlockComponent.importable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const CalloutBlockComponent = ({
5151
const id = formId.toString();
5252

5353
return (
54-
<>
54+
<div data-gu-name="callout">
5555
{!isNonCollapsible ? (
5656
<aside>
5757
<ExpandingWrapper
@@ -116,6 +116,6 @@ export const CalloutBlockComponent = ({
116116
pageId={pageId}
117117
/>
118118
)}
119-
</>
119+
</div>
120120
);
121121
};

dotcom-rendering/src/components/PullQuoteBlockComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ export const PullQuoteBlockComponent = ({
269269
alignmentCss(role, format),
270270
]}
271271
data-spacefinder-role={role}
272+
data-gu-name="pullquote"
272273
>
273274
<QuoteIcon colour={palette('--pullquote-icon')} />
274275
<blockquote

0 commit comments

Comments
 (0)