From a87744993650a3189fd50d31c5a7db95674bba04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 23 Jan 2021 01:23:09 +0100 Subject: [PATCH] Add related SDG and targets tags to processes I'm not sure why we were using squares to style these lists see commit bbacd4546bc) but I don't think it's very important and it breaks displaying the list of related SDGs. --- app/assets/stylesheets/legislation.scss | 5 ++++ .../stylesheets/legislation_process.scss | 15 ----------- .../processes/_header_full.html.erb | 2 ++ .../legislation/processes/_process.html.erb | 8 +++--- spec/system/legislation/processes_spec.rb | 26 +++++++++++++++++++ 5 files changed, 38 insertions(+), 18 deletions(-) diff --git a/app/assets/stylesheets/legislation.scss b/app/assets/stylesheets/legislation.scss index b70783789..59d55daad 100644 --- a/app/assets/stylesheets/legislation.scss +++ b/app/assets/stylesheets/legislation.scss @@ -71,8 +71,13 @@ .legislation-text { margin-bottom: 1rem; + > * { + @include grid-column-gutter; + } + h3 a { color: $black; + margin-bottom: 1rem; } } diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 792c19c1c..2103ad34d 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -16,21 +16,6 @@ .legislation-hero { - ul { - list-style: none; - margin-left: 0; - - li { - - &::before { - color: #8aa8be; - content: "■"; - padding-right: $line-height / 4; - vertical-align: text-bottom; - } - } - } - .title { font-weight: bold; text-transform: uppercase; diff --git a/app/views/legislation/processes/_header_full.html.erb b/app/views/legislation/processes/_header_full.html.erb index 6af30975c..08a0205aa 100644 --- a/app/views/legislation/processes/_header_full.html.erb +++ b/app/views/legislation/processes/_header_full.html.erb @@ -3,6 +3,8 @@ <%= markdown @process.description %> <% end %> +<%= render SDG::TagListComponent.new(@process, linkable: false) %> + <% if @process.additional_info.present? %>