Skip to content
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

Merged
merged 4 commits into from
Apr 23, 2018
Merged

Quote tweaks #105

merged 4 commits into from
Apr 23, 2018

Conversation

JBCSU
Copy link
Collaborator

@JBCSU JBCSU commented Apr 23, 2018

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.

Alisha Ober and others added 3 commits April 19, 2018 10:40
* 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 }}">
Copy link
Member

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/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@JBCSU
Copy link
Collaborator Author

JBCSU commented Apr 23, 2018

Yes, of course. Great point!

@josephgknox
Copy link

Looks great!

@josephgknox josephgknox merged commit a29ae8b into master Apr 23, 2018
@sherakama sherakama deleted the quote-tweaks branch April 23, 2018 23:10
josephgknox pushed a commit that referenced this pull request Apr 27, 2018
* 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)
sherakama pushed a commit that referenced this pull request Apr 30, 2018
…104)

* Icon postcard block approval from John on the design
* icon-postcard-block (#110)
* Quote tweaks (#105)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants