Skip to content

Conversation

frederickobrien
Copy link
Member

@frederickobrien frederickobrien commented Aug 14, 2025

Following chats with the Editorial Design crew this introduces several new gu-data attributes so that interactive atoms can target elements more consistently across web and apps.

There's a possibly a larger piece of work to pick up here around keeping web/apps DCAR as tightly aligned as possible, as well as a discussion to be had about formalising the atom contract. What elements/data attributes can we count on always being there?

Still, one thing at a time. Getting this out will allow us to test the waters and make adjustments accordingly.

@frederickobrien frederickobrien added this to the Visuals milestone Aug 14, 2025
Copy link

github-actions bot commented Aug 14, 2025

@frederickobrien frederickobrien force-pushed the more-meta-targeting-attributes branch from 1886fa9 to ec4aba5 Compare September 2, 2025 10:47
@frederickobrien frederickobrien marked this pull request as ready for review September 2, 2025 10:47
Copy link

github-actions bot commented Sep 2, 2025

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@frederickobrien frederickobrien self-assigned this Sep 2, 2025
Copy link
Contributor

@KaliedaRik KaliedaRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like these sensible additions. Will be interesting to see if/how our Interactives colleagues make use of this new signage.

@@ -62,7 +66,7 @@ export const Dateline = ({
);
}
return (
<div css={datelineStyles} style={mobileColour}>
<div css={datelineStyles} style={mobileColour} data-gu-name="dateline">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just looking out of curiosity so feel free to ignore. Do we ever have to care about primary vs. secondary datelines? Whatever that means 😁

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was chatting with the Ed Design crew about this earlier and apparently the distinction comes when a piece has been updated. In those cases you have publication date and and last modified date. So I think both pop up.

@frederickobrien frederickobrien added the run_chromatic Runs chromatic when label is applied label Sep 2, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Sep 2, 2025
@frederickobrien frederickobrien merged commit 27666fb into main Sep 2, 2025
32 checks passed
@frederickobrien frederickobrien deleted the more-meta-targeting-attributes branch September 2, 2025 14:10
@gu-prout
Copy link

gu-prout bot commented Sep 2, 2025

Seen on PROD (merged by @frederickobrien 7 minutes and 58 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants