From fa39e83263eb4235806480c72a78daddedefc560 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 11 Nov 2025 15:25:56 -0600 Subject: [PATCH] Add tooltip, adjust selector so `tooltip` doesn't need to appear at the start of the controller list --- app/assets/stylesheets/tooltips.css | 2 +- app/views/filters/settings/_manage.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/tooltips.css b/app/assets/stylesheets/tooltips.css index 20a02985b..419664fc6 100644 --- a/app/assets/stylesheets/tooltips.css +++ b/app/assets/stylesheets/tooltips.css @@ -1,5 +1,5 @@ @layer components { - [data-controller^="tooltip"] { + [data-controller~="tooltip"] { --tooltip-delay: 750ms; --tooltip-duration: 150ms; diff --git a/app/views/filters/settings/_manage.html.erb b/app/views/filters/settings/_manage.html.erb index 8a13490ad..333e9973e 100644 --- a/app/views/filters/settings/_manage.html.erb +++ b/app/views/filters/settings/_manage.html.erb @@ -3,7 +3,7 @@
<%= render "filters/filter_toggle", filter: filter %> - <%= link_to no_filtering_url, class: "btn btn--remove txt-x-small", data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click"} do %> + <%= link_to no_filtering_url, class: "btn btn--remove txt-x-small", data: { controller: "hotkey tooltip", action: "keydown.esc@document->hotkey#click"} do %> <%= icon_tag "close" %> Clear all <% end %>