From 04ea068f90f33d50beed3af58d23874019b97709 Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 10 Oct 2018 14:08:26 +0200 Subject: [PATCH] Fixes legislation processes key dates active class --- app/assets/stylesheets/legislation_process.scss | 5 +++++ app/views/legislation/processes/_key_dates.html.erb | 2 +- app/views/legislation/processes/debate.html.erb | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 30332d49b..0bfff8b23 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -101,6 +101,11 @@ .is-active { border-bottom: 2px solid $brand; + + a, + h4 { + color: $brand; + } } } } diff --git a/app/views/legislation/processes/_key_dates.html.erb b/app/views/legislation/processes/_key_dates.html.erb index dc74f8c59..0ada8de08 100644 --- a/app/views/legislation/processes/_key_dates.html.erb +++ b/app/views/legislation/processes/_key_dates.html.erb @@ -15,7 +15,7 @@ <% end %> <% if process.proposals_phase.enabled? %> -
  • > +
  • > <%= link_to proposals_legislation_process_path(process) do %>

    <%= t('legislation.processes.shared.proposals_dates') %>

    <%= format_date(process.proposals_phase_start_date) %> - <%= format_date(process.proposals_phase_end_date) %>

    diff --git a/app/views/legislation/processes/debate.html.erb b/app/views/legislation/processes/debate.html.erb index 52969cef2..084b19f80 100644 --- a/app/views/legislation/processes/debate.html.erb +++ b/app/views/legislation/processes/debate.html.erb @@ -4,7 +4,7 @@ <%= render 'documents/additional_documents', documents: @process.documents %> -<%= render 'key_dates', process: @process, phase: :debate %> +<%= render 'key_dates', process: @process, phase: :debate_phase %>