-
Notifications
You must be signed in to change notification settings - Fork 3
Add Media Group object #1579
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
Add Media Group object #1579
Conversation
🦋 Changeset detectedLatest commit: 7fed1a7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✔️ Deploy Preview for cloudfour-patterns ready! 🔨 Explore the source changes: 7fed1a7 🔍 Inspect the deploy log: https://app.netlify.com/sites/cloudfour-patterns/deploys/6192b555713b880008fcd832 😎 Browse the preview: https://deploy-preview-1579--cloudfour-patterns.netlify.app |
@dromo77 Thanks for tackling this challenging layout problem. I'm not sure I understand what |
@tylersticka I ran into a couple issues trying to use
I'm open to other solutions, but wanted to give some context to the problems I ran into using existing patterns. |
I assume that was true even with the
Reading the comment in the From there, there are probably a few ways of handling those case study image widths. Perhaps we could make one or more Or, honestly, I don't mind the different media columns being different as much as I used to. If we find that's taking an outsized amount of effort to componentize, maybe it isn't completely necessary after all? What do you think? |
I'll try using our existing patterns with the changes you mentioned. I don't think it will take too much time to add |
@tylersticka I made several changes:
|
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.
It looks like some of the prototype images have been copied from src/prototypes/case-study-listings/images
to static/media
. That's fine, but can we remove the duplicates so they are only in one place?
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.
Apparently I wrote a comment on Friday that I never actually posted. Sorry about that. 🤦
src/objects/deck/deck.stories.mdx
Outdated
The `o-deck--align-start` modifier can be used to top-align deck items. | ||
|
||
<Canvas> | ||
<Story | ||
name="Alignment" | ||
height="400px" | ||
args={{ class: 'o-deck--align-start' }} | ||
> | ||
{articlesStory.bind({})} | ||
</Story> | ||
</Canvas> |
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.
Can we have a demo that more clearly shows the use case, as well as more context for why one would use it versus the default behavior? It isn't clear to me how the demo differs visually from the others as-is.
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.
@tylersticka I updated the example, let me know if it makes more sense 🙂
Overview
This PR adds a Media Group object. It should be helpful for aligning images/content on pages like the Case Study Listing page.
Screenshots
Testing