-
Notifications
You must be signed in to change notification settings - Fork 17
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 share buttons to consultations #207
Conversation
* Port social media icons from Whitehall, remove unused icons and PNGCrush * Simplify markup and CSS for social icons * Look and behaviour matches Whitehall
Save 4% of bytes: TOTAL was: 11.503kb now: 11.038kb saving: .465kb (4.00%) quality: 100%
Show the button in purple when it matches the visited state. With a purple link and a blue button it looks like a mistake. Also use active and hover colours to match full link behaviour.
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.
Nice one. 👍
@@ -0,0 +1,26 @@ | |||
window.GOVUK.Modules = window.GOVUK.Modules || {}; |
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 file uses a mix of semicolons and no semicolons but I don't mind it.
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.
Updated to match JS Standard style.
* Tracking ported from Whitehall * Set up and include first JS in government-frontend
On mobile devices containers using this class would still be shifted right by a few 100 pixels.
24e221f
to
97085c3
Compare
Looks good to @bevanloon and I. |
offset-one-third
bug on thin devices(This is the first JS added to government-frontend. I'd like to include
jasmine-rails
for JS tests but I had problems running versions 12+ against PhantomJS 1.9.7 on our VM. I will try and fix in a separate PR) Edit: #208https://trello.com/c/MaZ7t0zi/521-add-share-buttons-to-consultations-on-government-frontend
Whitehall
This PR