From b15512f0258db995c5e02fb4053f25018d8a86df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 27 Sep 2023 17:21:34 +0200 Subject: [PATCH] Fix focus outline on budget executions index The outline was invisible when we had the link containing block elements, and I didn't manage to fix it, so the easiest solution is to use an inline link and style the card with CSS. --- app/assets/stylesheets/participation.scss | 1 + .../budgets/executions/_investments.html.erb | 25 ++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 75a8e93fa..7b92ac831 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1284,6 +1284,7 @@ } .budget-execution { + @include card; border: 1px solid $border; overflow: hidden; position: relative; diff --git a/app/views/budgets/executions/_investments.html.erb b/app/views/budgets/executions/_investments.html.erb index 4a8d20834..e0f3abfdd 100644 --- a/app/views/budgets/executions/_investments.html.erb +++ b/app/views/budgets/executions/_investments.html.erb @@ -5,19 +5,20 @@
<% investments.each do |investment| %>
-
- <%= link_to budget_investment_path(@budget, investment, anchor: "tab-milestones"), data: { "equalizer-watch": true } do %> - <%= render Budgets::Executions::ImageComponent.new(investment) %> -
-
-
<%= investment.title %>
- <%= investment.author.name %> -
-

- <%= investment.formatted_price %> -

+
+ <%= render Budgets::Executions::ImageComponent.new(investment) %> +
+
+
+ <%= link_to investment.title, + budget_investment_path(@budget, investment, anchor: "tab-milestones") %> +
+ <%= investment.author.name %>
- <% end %> +

+ <%= investment.formatted_price %> +

+
<% end %>