-
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
Remove translation nav component #886
Conversation
bb80d8d
to
54c54d9
Compare
Added to govuk_publishing_components in alphagov/govuk_publishing_components#289 |
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.
I've checked the following pages locally (they have translations) and they use the component and look fine:
- a case study: https://www.gov.uk/government/case-studies/womens-rights-in-india
- world news story: https://www.gov.uk/government/news/celebrating-the-uk-india-science-and-innovation-relationship
I've checked that the things that have been removed
are those that have been added to the govuk_publishing_components gem.
If we could get the detailed guide view to use the partial as the others do, then I think we're good to go.
@@ -4,7 +4,7 @@ | |||
</div> | |||
<% if @content_item.available_translations.length > 1 %> | |||
<div class="column-third"> | |||
<%= render 'components/translation-nav', | |||
<%= render 'govuk_publishing_components/components/translation-nav', |
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.
If you could pull this section out and call the translations partial (below) like the other views do that'd be good.
<%= render 'shared/translations' %>
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.
Good spot @sihugh thanks, have updated.
54c54d9
to
63f2008
Compare
The translation nav component has been moved from this app to the publishing components gem. This PR removes it and updates government-frontend to use the component from the gem.
Trello card: https://trello.com/c/ehg2nkE9/53-modify-component-translation-nav
Visual regression results:
https://government-frontend-pr-886.surge.sh/gallery.html
Component guide for this PR:
https://government-frontend-pr-886.herokuapp.com/component-guide/translation-nav