Rework styles to account for button_to mark-up

This commit is contained in:
Jason Zimdars
2024-09-18 16:45:39 -05:00
parent b2d948594a
commit de1994f622
2 changed files with 9 additions and 4 deletions
+5 -3
View File
@@ -90,9 +90,11 @@
padding: 0;
place-items: center;
a {
margin: auto;
text-decoration: none;
.btn {
--btn-color: var(--bubble-color);
appearance: none;
font-weight: 800;
}
.windshield .bubble:hover & {
+4 -1
View File
@@ -1,3 +1,6 @@
<%= button_to project_bubble_boosts_path(bubble.project, bubble), data: { action: "toggle-class#toggle" } do %>
<%= button_to project_bubble_boosts_path(bubble.project, bubble),
class: "btn btn--plain",
data: { action: "toggle-class#toggle" },
form_class: "full-width" do %>
+ <%= bubble.boosts.size if bubble.boosts.any? %>
<% end %>