-
Notifications
You must be signed in to change notification settings - Fork 30
Add gallery sub meta #14137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add gallery sub meta #14137
Conversation
Co-authored-by: Jamie B <[email protected]>
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
Size Change: +8 B (0%) Total Size: 1.05 MB ℹ️ View Unchanged
|
@@ -184,7 +193,8 @@ export const SubMeta = ({ | |||
/> | |||
</Island> | |||
<div css={syndicationButtonOverrides}> | |||
{format.design === ArticleDesign.Interactive ? null : ( | |||
{format.design === ArticleDesign.Interactive || | |||
format.design === ArticleDesign.Gallery ? null : ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I know this is not something introduced here, but what do you think about moving this check outside the enclosing <div>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wading in here with a comment on this component, and maybe other standard page furniture components 💃
Ideally I think we could do away with the need for components like the <SubMeta>
to know about the context in which they are used. This invites the component to become unwieldy, as it offers a pattern for making many tiny variations to the design based on context.
In this case, we could pass a prop to flag whether to show / hide the syndication button.
This question needn't block this PR, and perhaps there is a better forum for a discussion like this. I'd be interested to hear your opinions @marjisound and @JamieB-gu, and anyone else who happens to read!
Paired with @JamieB-gu
What does this change?
This PR does the following: