-
Notifications
You must be signed in to change notification settings - Fork 1
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
YALB-1697: Bug: Margin for spotlights #332
Conversation
✅ Deploy Preview for dev-component-library-twig ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…t-library-twig into YALB-1697-margins
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.
Works great! Nice work! I was going to suggest maybe combining the if statements at the end so that it doesn't overwrite itself in the event it is first and last, but then again that means there's only one spotlight and that's a trivial performance gain. LOL
I really like the idea of creating the data attributes for this! So easy to understand in the markup.
This looks great, @joetower! |
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.
this is great!
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.
Whoops, reviewed on Atomic as well, I think that's correct. Anyways, approved! Nice work!
🎉 This PR is included in version 1.39.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
YALB-1697: Bug: Margin for spotlights
Description of work
text-with-image
orcontent-spotlight-portrait
default
)Testing Link(s)
Functional Review Steps
data-spotlights-position="first"
)data-spotlights-position="last"
except if last component on the page and not using a component theme)yalb-spotlight-margins-drupal.mp4
data-spotlights-position="first-and-last"
)yalb-spotlight-margins-drupal-single.mp4