From 7bb79bc17fdc1def57442399f6f05695b5cfa8dc Mon Sep 17 00:00:00 2001 From: "Luna D." Date: Tue, 2 Jul 2024 21:42:21 +0200 Subject: [PATCH] fix warnings --- assets/css/elements/dropdown.css | 8 ++++---- lib/philomena_web/views/app_view.ex | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/css/elements/dropdown.css b/assets/css/elements/dropdown.css index 53e556c6..72d2b348 100644 --- a/assets/css/elements/dropdown.css +++ b/assets/css/elements/dropdown.css @@ -12,19 +12,19 @@ .dropdown--$(type) .dropdown__item:hover .dropdown__text { background: var(--$(type)-color); } - + .dropdown--$(type) .dropdown__icon { background: var(--$(type)-dark-color); } - + .dropdown--$(type) .dropdown__item:hover .dropdown__icon { background: var(--$(type)-color); } - + .dropdown--$(type) .dropdown__separator { border-color: var(--$(type)-border-color); } - + .dropdown--$(type) .dropdown__link:hover { background: var(--$(type)-color); } diff --git a/lib/philomena_web/views/app_view.ex b/lib/philomena_web/views/app_view.ex index c64a1dac..b6eb6792 100644 --- a/lib/philomena_web/views/app_view.ex +++ b/lib/philomena_web/views/app_view.ex @@ -102,7 +102,9 @@ defmodule PhilomenaWeb.AppView do end end - def button_to(route, args \\ [], do: fun) do + def button_to(text, route, args \\ []) + + def button_to(route, args, do: fun) do method = Keyword.get(args, :method, "get") class = Keyword.get(args, :class, nil) data = Keyword.get(args, :data, [])