-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Quote tweaks #105
Quote tweaks #105
Conversation
… made for the Engineering project
* master: Quote element (#100) # Conflicts - all resolved "using theirs": # css/decanter.css # styleguide/item-elements-quote.html # styleguide/section-elements.html # templates/elements/quote/quote.html.json # templates/elements/quote/quote.html.twig
@@ -1,8 +1,8 @@ | |||
<div class="decanter-quote"> | |||
<img class="decanter-quote__img " src="../../../img/circle.png" alt="Please provide alt text"> | |||
<img class="decanter-quote__img " src="../../../img/{{ image }}" alt="{{ altText }}"> |
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.
@JBCSU Let's change the src attribute to src="{{ image }}"
so we can supply full paths to this template instead of assuming ../../../img/
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.
Done.
Yes, of course. Great point! |
Looks great! |
* Quote tweaks (#105) * Created quote element within elements directory based on design Kerri made for the Engineering project * tweak Quote template to make it easier to include directly into themes * don't hardcode path to quote's image * update neat-omega, grunt, grunt-sass, jquery, and associated dependencies (#106) * #107 specify node version (#108) * removed FA from project; updagraded to latest normalize (#101)
I made a few changes to the
quote.html.twig
template to make it easier to use directly in a theme. Specifically, I'm using variables for the path to the image and to the image alt text, rather than hardcoding those.I also renamed the
.decanter-quote__detail
class to.decanter-quote__bio
to make it (hopefully!) clearer that the detail pertained to the person being quoted, not the quote itself.